mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-24 00:52:59 +00:00
missed these two
This commit is contained in:
parent
86e08af338
commit
8036565022
|
|
@ -994,7 +994,7 @@ bool LevelChunk::setTileAndData(int x, int y, int z, int _tile, int _data) {
|
|||
y >= Level::COMPRESSED_CHUNK_SECTION_HEIGHT ? upperData : lowerData;
|
||||
int old = blocks->get(x, y % Level::COMPRESSED_CHUNK_SECTION_HEIGHT, z);
|
||||
int oldData = data->get(x, y % Level::COMPRESSED_CHUNK_SECTION_HEIGHT, z);
|
||||
if (old == _tile && oldData == _data) return false;
|
||||
if (old == _tile && oldData == _data) {
|
||||
// 4J Stu - Need to do this here otherwise double chests don't always
|
||||
// work correctly
|
||||
std::shared_ptr<TileEntity> te = getTileEntity(x, y, z);
|
||||
|
|
|
|||
|
|
@ -139,6 +139,7 @@ charArray MapItemSavedData::HoldingPlayer::nextUpdatePacket(
|
|||
std::shared_ptr<ServerPlayer> servPlayer =
|
||||
std::dynamic_pointer_cast<ServerPlayer>(player);
|
||||
for (int d = 0; d < 10; d++) {
|
||||
int column = (tick++ * 11) % (MapItem::IMAGE_WIDTH);
|
||||
|
||||
if (rowsDirtyMin[column] >= 0) {
|
||||
int len = rowsDirtyMax[column] - rowsDirtyMin[column] + 1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue