1
0
Fork 0
cuberite-2a/src/BlockEntities
Tiger Wang 9b97d63f8f
Chest, weather, crash, and miscellaneous fixes (#5215)
* Alpha-sort cChestEntity

* Chests: use SendUpdateBlockEntity

* Pathfinder: fix out of range Y

* 1.13: correct weather packet ID

* Chests: fix neighbour scanner

+ Add OnAddToWorld and overload to scan neighbours there, instead of in the constructor/OnUse. This fixes hoppers accessing newly loaded double chests and seeing a null m_Neighbour, thus thinking its a single chest.
* Fix typo in cross coords computation.
* Simplify hopper logic.

* Block entities: ASSERT that type is correct

If you match the block type first before calling DoWithBlockEntity, the corresponding block entity must either be empty or correspond to the block type.

* Chunk: fix some forgotten PendingSendBE cleanup

+ Add cleanup in SetAllData, WriteBlockArea
- Remove RemoveBlockEntity (used once), HasBlockEntity (not used)

* Replace MakeIndex with MakeIndexNoCheck

* Remove extraneous MarkDirty in hopper & chests
2021-04-30 13:23:46 +00:00
..
BannerEntity.cpp Mob heads, banners cannot be used 2021-03-17 23:44:59 +00:00
BannerEntity.h Mob heads, banners cannot be used 2021-03-17 23:44:59 +00:00
BeaconEntity.cpp Fix sending incorrect date values on world change 2021-04-12 22:35:07 +01:00
BeaconEntity.h Fix potential destruction crashes (#5095) 2021-01-02 13:50:34 +00:00
BedEntity.cpp Unify DoWithBlockEntity (#5168) 2021-03-28 14:40:57 +01:00
BedEntity.h Remove BLOCKENTITY_PROTODEF 2020-10-24 18:49:38 +01:00
BlockEntity.cpp Chest, weather, crash, and miscellaneous fixes (#5215) 2021-04-30 13:23:46 +00:00
BlockEntity.h Chest, weather, crash, and miscellaneous fixes (#5215) 2021-04-30 13:23:46 +00:00
BlockEntityWithItems.cpp Unify block entity pickup conversion 2020-09-25 09:07:01 +00:00
BlockEntityWithItems.h Remove BLOCKENTITY_PROTODEF 2020-10-24 18:49:38 +01:00
BrewingstandEntity.cpp Fix sending incorrect date values on world change 2021-04-12 22:35:07 +01:00
BrewingstandEntity.h Fix potential destruction crashes (#5095) 2021-01-02 13:50:34 +00:00
CMakeLists.txt Adding basic Banner functionality (#4806) 2021-03-15 02:47:55 +00:00
ChestEntity.cpp Chest, weather, crash, and miscellaneous fixes (#5215) 2021-04-30 13:23:46 +00:00
ChestEntity.h Chest, weather, crash, and miscellaneous fixes (#5215) 2021-04-30 13:23:46 +00:00
CommandBlockEntity.cpp Added override specifiers to overridden functions. 2021-04-12 14:09:52 +01:00
CommandBlockEntity.h Remove BLOCKENTITY_PROTODEF 2020-10-24 18:49:38 +01:00
DispenserEntity.cpp Add correct implementation of crops (#4802) 2020-11-06 16:54:01 +00:00
DispenserEntity.h Remove BLOCKENTITY_PROTODEF 2020-10-24 18:49:38 +01:00
DropSpenserEntity.cpp Fix potential destruction crashes (#5095) 2021-01-02 13:50:34 +00:00
DropSpenserEntity.h Fix potential destruction crashes (#5095) 2021-01-02 13:50:34 +00:00
DropperEntity.cpp Using Super. 2020-04-16 20:07:48 +00:00
DropperEntity.h Remove BLOCKENTITY_PROTODEF 2020-10-24 18:49:38 +01:00
EnchantingTableEntity.cpp Unify block entity pickup conversion 2020-09-25 09:07:01 +00:00
EnchantingTableEntity.h Remove BLOCKENTITY_PROTODEF 2020-10-24 18:49:38 +01:00
EndPortalEntity.cpp Added end portal and enchanting table block entities 2020-09-20 01:40:20 +01:00
EndPortalEntity.h Remove BLOCKENTITY_PROTODEF 2020-10-24 18:49:38 +01:00
EnderChestEntity.cpp Properly deprecate more XYZ parameter'd functions (#5147) 2021-03-15 02:28:18 +00:00
EnderChestEntity.h Fix potential destruction crashes (#5095) 2021-01-02 13:50:34 +00:00
FlowerPotEntity.cpp Fix potential destruction crashes (#5095) 2021-01-02 13:50:34 +00:00
FlowerPotEntity.h Fix potential destruction crashes (#5095) 2021-01-02 13:50:34 +00:00
FurnaceEntity.cpp Fix sending incorrect date values on world change 2021-04-12 22:35:07 +01:00
FurnaceEntity.h Fix potential destruction crashes (#5095) 2021-01-02 13:50:34 +00:00
HopperEntity.cpp Chest, weather, crash, and miscellaneous fixes (#5215) 2021-04-30 13:23:46 +00:00
HopperEntity.h Fix sending incorrect date values on world change 2021-04-12 22:35:07 +01:00
JukeboxEntity.cpp Do not call into things we don't own in destructors 2020-09-25 14:51:16 +01:00
JukeboxEntity.h Remove BLOCKENTITY_PROTODEF 2020-10-24 18:49:38 +01:00
MobHeadEntity.cpp Unify DoWithBlockEntity (#5168) 2021-03-28 14:40:57 +01:00
MobHeadEntity.h Mob heads, banners cannot be used 2021-03-17 23:44:59 +00:00
MobSpawnerEntity.cpp Fix sending incorrect date values on world change 2021-04-12 22:35:07 +01:00
MobSpawnerEntity.h Remove BLOCKENTITY_PROTODEF 2020-10-24 18:49:38 +01:00
NoteEntity.cpp Mark UNREACHABLE with intrinsics 2021-02-20 17:46:02 +00:00
NoteEntity.h Remove BLOCKENTITY_PROTODEF 2020-10-24 18:49:38 +01:00
SignEntity.cpp Using Super. 2020-04-16 20:07:48 +00:00
SignEntity.h Remove BLOCKENTITY_PROTODEF 2020-10-24 18:49:38 +01:00