Possible fix for Vec3D error

This commit is contained in:
fullwall 2013-04-12 17:57:15 +08:00
parent 569c4a4c51
commit 44ce564609
4 changed files with 3 additions and 4 deletions

View File

@ -68,8 +68,8 @@ public class CitizensNPC extends AbstractNPC {
data().remove("selectors");
for (Trait trait : traits.values())
trait.onDespawn();
entityController.remove();
navigator.onDespawn();
entityController.remove();
return true;
}

View File

@ -240,6 +240,5 @@ public class CitizensNavigator implements Navigator, Runnable {
}
private static final Location STATIONARY_LOCATION = new Location(null, 0, 0, 0);
private static int UNINITIALISED_SPEED = Integer.MIN_VALUE;
}

View File

@ -138,8 +138,9 @@ public class EntityHumanNPC extends EntityPlayer implements NPCHolder {
// gravity. also works around an entity.onGround not updating issue
// (onGround is normally updated by the client)
}
if (!npc.data().get("removefromplayerlist", true))
if (!npc.data().get("removefromplayerlist", true)) {
g();
}
if (Math.abs(motX) < EPSILON && Math.abs(motY) < EPSILON && Math.abs(motZ) < EPSILON)
motX = motY = motZ = 0;

View File

@ -40,7 +40,6 @@ public class MagmaCubeController extends MobEntityController {
if (npc != null) {
setSize(3);
NMS.clearGoals(goalSelector, targetSelector);
}
}