Permalink
Browse files

Switch to the BlockData API for BetterPhysics.

  • Loading branch information...
me4502 committed Aug 18, 2018
1 parent 7059fdd commit 22d8f25c6bc59bbb0a640778dc6787d1b73da4c7
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/com/sk89q/craftbook/mechanics/BetterPhysics.java
@@ -72,7 +72,7 @@ public static boolean isValid(Block block) {
@Override
public void run () {
if(!isValid(ladder)) return;
ladder.getWorld().spawnFallingBlock(ladder.getLocation().add(0.5, 0, 0.5), ladder.getType(), ladder.getData());
ladder.getWorld().spawnFallingBlock(ladder.getLocation().add(0.5, 0, 0.5), ladder.getBlockData());
ladder.setType(Material.AIR, false);
checkForPhysics(ladder.getRelative(BlockFace.UP));

0 comments on commit 22d8f25

Please sign in to comment.