mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
Add beds and enderchests to list of collidable blocks
This commit is contained in:
parent
e12f1faed1
commit
4eadccd3e2
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ index 26f54c8..029fc5a 100644
|
|||
- block.getBlock().a(this, blockposition, block, axisalignedbb, arraylist, entity);
|
||||
+ // PaperSpigot start - FallingBlocks and TNT collide with specific non-collidable blocks
|
||||
+ Block b = block.getBlock();
|
||||
+ if (entity.world.paperSpigotConfig.fallingBlocksCollideWithSigns && (entity instanceof EntityTNTPrimed || entity instanceof EntityFallingBlock) && (b instanceof BlockSign || b instanceof BlockFenceGate || b instanceof BlockTorch || b instanceof BlockButtonAbstract || b instanceof BlockLever || b instanceof BlockTripwireHook || b instanceof BlockTripwire || b instanceof BlockChest || b instanceof BlockSlowSand)) {
|
||||
+ if (entity.world.paperSpigotConfig.fallingBlocksCollideWithSigns && (entity instanceof EntityTNTPrimed || entity instanceof EntityFallingBlock) && (b instanceof BlockSign || b instanceof BlockFenceGate || b instanceof BlockTorch || b instanceof BlockButtonAbstract || b instanceof BlockLever || b instanceof BlockTripwireHook || b instanceof BlockTripwire || b instanceof BlockChest || b instanceof BlockSlowSand || b instanceof BlockBed || b instanceof BlockEnderChest)) {
|
||||
+ AxisAlignedBB aabb = AxisAlignedBB.a(x, y, z, x + 1.0, y + 1.0, z + 1.0);
|
||||
+ if (axisalignedbb.b(aabb)) arraylist.add(aabb);
|
||||
+ } else {
|
||||
|
|
Loading…
Reference in a new issue