Sneaky Assassins previous commit bug fix

This commit is contained in:
CoderTim 2014-08-04 01:06:11 -04:00
parent 012382ec48
commit e7d3cf9e02

View File

@ -112,7 +112,10 @@ public class NpcManager implements Listener
Location candidate = location.clone().add(dx, 0, dz); Location candidate = location.clone().add(dx, 0, dz);
Block block = candidate.getBlock(); Block block = candidate.getBlock();
if (block.isEmpty() && block.getRelative(BlockFace.UP).isEmpty()) if (!block.getRelative(BlockFace.DOWN).isEmpty() &&
!block.getRelative(BlockFace.DOWN).isLiquid() &&
block.isEmpty() &&
block.getRelative(BlockFace.UP).isEmpty())
{ {
location = candidate; location = candidate;