mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-27 13:15:33 +01:00
Possible fix for Vec3D error
This commit is contained in:
parent
569c4a4c51
commit
44ce564609
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
||||
|
@ -40,7 +40,6 @@ public class MagmaCubeController extends MobEntityController {
|
||||
if (npc != null) {
|
||||
setSize(3);
|
||||
NMS.clearGoals(goalSelector, targetSelector);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user