Permalink
Browse files

Fixed BetterPhysics ladders.

  • Loading branch information...
me4502 committed Oct 30, 2016
1 parent a737ce3 commit f07b22b84dda35883a4e37094f66d106397fcb11
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/main/java/com/sk89q/craftbook/mechanics/BetterPhysics.java
@@ -3,6 +3,7 @@
import org.bukkit.Bukkit;
import org.bukkit.Material;
import org.bukkit.block.Block;
+import org.bukkit.entity.FallingBlock;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.block.BlockBreakEvent;
@@ -69,8 +70,8 @@ public static boolean isValid(Block block) {
@Override
public void run () {
if(!isValid(ladder)) return;
- ladder.getWorld().spawnFallingBlock(ladder.getLocation(), ladder.getType(), ladder.getData());
- ladder.setTypeId(Material.AIR.getId(), false);
+ ladder.getWorld().spawnFallingBlock(ladder.getLocation().add(0.5, 0, 0.5), ladder.getType(), ladder.getData());
+ ladder.setType(Material.AIR, false);
}
}

0 comments on commit f07b22b

Please sign in to comment.