Sneaky Assassins previous commit bug fix
This commit is contained in:
parent
012382ec48
commit
e7d3cf9e02
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user