1
0
Fork 0
cuberite-2a/src/Blocks
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
..
BlockAir.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockAnvil.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockBanner.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockBed.cpp Chest, weather, crash, and miscellaneous fixes (#5215) 2021-04-30 13:23:46 +00:00
BlockBed.h Improve bed handling robustness 2021-04-12 22:35:07 +01:00
BlockBigFlower.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockBookShelf.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockBrewingStand.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockButton.h Fix sending incorrect date values on world change 2021-04-12 22:35:07 +01:00
BlockCactus.h Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963) 2020-10-05 10:27:14 +00:00
BlockCake.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockCarpet.h Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963) 2020-10-05 10:27:14 +00:00
BlockCauldron.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockChest.h Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963) 2020-10-05 10:27:14 +00:00
BlockCloth.h Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963) 2020-10-05 10:27:14 +00:00
BlockCobWeb.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockCocoaPod.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockCommandBlock.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockComparator.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockConcretePowder.h cChunk: don't inherit from cChunkDef (#5106) 2021-01-18 16:09:10 +00:00
BlockCrops.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockDaylightSensor.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockDeadBush.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockDefaultBlock.h Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963) 2020-10-05 10:27:14 +00:00
BlockDirt.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockDoor.cpp Merged OnBreak with OnPlayerBreak (#4967) 2020-10-08 20:13:44 +01:00
BlockDoor.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockDropSpenser.h Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963) 2020-10-05 10:27:14 +00:00
BlockEnchantingTable.h Chest, weather, crash, and miscellaneous fixes (#5215) 2021-04-30 13:23:46 +00:00
BlockEndPortalFrame.h Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963) 2020-10-05 10:27:14 +00:00
BlockEnderchest.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockEntity.h Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963) 2020-10-05 10:27:14 +00:00
BlockFarmland.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockFence.h Merged OnBreak with OnPlayerBreak (#4967) 2020-10-08 20:13:44 +01:00
BlockFenceGate.h Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963) 2020-10-05 10:27:14 +00:00
BlockFire.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockFlower.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockFlowerPot.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockFluid.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockFurnace.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockGlass.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockGlazedTerracotta.h Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963) 2020-10-05 10:27:14 +00:00
BlockGlowstone.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockGrass.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockGravel.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockHandler.cpp Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockHandler.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockHopper.h Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963) 2020-10-05 10:27:14 +00:00
BlockHugeMushroom.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockIce.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockInfested.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockJukebox.h Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963) 2020-10-05 10:27:14 +00:00
BlockLadder.h Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963) 2020-10-05 10:27:14 +00:00
BlockLeaves.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockLever.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockLilypad.h Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963) 2020-10-05 10:27:14 +00:00
BlockMelon.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockMobHead.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockMobSpawner.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockMushroom.h Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963) 2020-10-05 10:27:14 +00:00
BlockMycelium.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockNetherWart.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockNetherrack.h Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963) 2020-10-05 10:27:14 +00:00
BlockNoteBlock.h Chest, weather, crash, and miscellaneous fixes (#5215) 2021-04-30 13:23:46 +00:00
BlockObserver.h Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963) 2020-10-05 10:27:14 +00:00
BlockOre.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockPackedIce.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockPiston.cpp Fix sending incorrect date values on world change 2021-04-12 22:35:07 +01:00
BlockPiston.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockPlanks.h Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963) 2020-10-05 10:27:14 +00:00
BlockPlant.h Add correct implementation of crops (#4802) 2020-11-06 16:54:01 +00:00
BlockPluginInterface.h Refactored block-to-pickup conversion. (#4417) 2019-10-16 10:06:34 +02:00
BlockPortal.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockPressurePlate.h Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963) 2020-10-05 10:27:14 +00:00
BlockPumpkin.h Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963) 2020-10-05 10:27:14 +00:00
BlockQuartz.h Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963) 2020-10-05 10:27:14 +00:00
BlockRail.h Merged OnBreak with OnPlayerBreak (#4967) 2020-10-08 20:13:44 +01:00
BlockRedstone.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockRedstoneLamp.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockRedstoneOre.h Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963) 2020-10-05 10:27:14 +00:00
BlockRedstoneRepeater.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockSand.h Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963) 2020-10-05 10:27:14 +00:00
BlockSapling.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockSeaLantern.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockSideways.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockSignPost.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockSlab.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockSlime.h Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963) 2020-10-05 10:27:14 +00:00
BlockSnow.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockSponge.h cChunk: don't inherit from cChunkDef (#5106) 2021-01-18 16:09:10 +00:00
BlockStairs.h Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963) 2020-10-05 10:27:14 +00:00
BlockStems.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockStone.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockSugarcane.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockTNT.h Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963) 2020-10-05 10:27:14 +00:00
BlockTallGrass.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockTorch.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockTrapdoor.h Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963) 2020-10-05 10:27:14 +00:00
BlockTripwire.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockTripwireHook.h Mark UNREACHABLE with intrinsics 2021-02-20 17:46:02 +00:00
BlockVine.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockWallSign.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockWorkbench.h Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963) 2020-10-05 10:27:14 +00:00
BroadcastInterface.h Unify multiprotocol entity animations 2021-04-12 22:35:07 +01:00
CMakeLists.txt Adding basic Banner functionality (#4806) 2021-03-15 02:47:55 +00:00
ChunkInterface.cpp Merged OnBreak with OnPlayerBreak (#4967) 2020-10-08 20:13:44 +01:00
ChunkInterface.h Merged OnBreak with OnPlayerBreak (#4967) 2020-10-08 20:13:44 +01:00
GetHandlerCompileTimeTemplate.h CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
Mixins.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
WorldInterface.h Fix sending incorrect date values on world change 2021-04-12 22:35:07 +01:00