Add beds and enderchests to list of collidable blocks
Dieser Commit ist enthalten in:
Ursprung
e12f1faed1
Commit
4eadccd3e2
@ -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 {
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren