Fixed Herobrine path mover forcing Herobrine's lower body in to the block on which he is standing

This commit is contained in:
David Berdik 2020-06-27 20:52:56 -04:00
parent a06903f174
commit ec6276e1d9

View File

@ -109,13 +109,13 @@ public class Path {
}
}
newloc.setY(world.getHighestBlockYAt(newloc) - 1);
newloc.setY(world.getHighestBlockYAt(newloc) + 1);
if (world.getBlockAt(newloc).getType().isSolid()) {
newloc.setY(newloc.getWorld().getHighestBlockYAt(newloc) + 1.5f);
PluginCore.HerobrineNPC.lookAtPoint(newloc);
newloc.setY(newloc.getWorld().getHighestBlockYAt(newloc));
newloc.setY(newloc.getWorld().getHighestBlockYAt(newloc) + 1);
PluginCore.HerobrineNPC.moveTo(newloc);
}