Skip to content
This repository was archived by the owner on Jan 21, 2024. It is now read-only.

Commit dd778e2

Browse files
committed
Check if entity has ai before disabling movement
1 parent 0f58938 commit dd778e2

File tree

1 file changed

+1
-1
lines changed
  • WindSpigot-Server/src/main/java/net/minecraft/server

1 file changed

+1
-1
lines changed

WindSpigot-Server/src/main/java/net/minecraft/server/Entity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ public void loadChunks() {
521521
public void move(double d0, double d1, double d2) {
522522
// Check if we're moving
523523
// WindSpigot - smoother mob ai disable
524-
if ((d0 == 0 && d1 == 0 && d2 == 0 && this.vehicle == null && this.passenger == null) || !this.getWorld().nachoSpigotConfig.enableMobAI) {
524+
if ((d0 == 0 && d1 == 0 && d2 == 0 && this.vehicle == null && this.passenger == null) || (!this.getWorld().nachoSpigotConfig.enableMobAI && this instanceof EntityInsentient)) {
525525
return;
526526
}
527527
if (this.loadChunks) {

0 commit comments

Comments
 (0)