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

Commit

Permalink
Check if entity has ai before disabling movement
Browse files Browse the repository at this point in the history
  • Loading branch information
windcolor-dev committed Mar 11, 2022
1 parent 0f58938 commit dd778e2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ public void loadChunks() {
public void move(double d0, double d1, double d2) {
// Check if we're moving
// WindSpigot - smoother mob ai disable
if ((d0 == 0 && d1 == 0 && d2 == 0 && this.vehicle == null && this.passenger == null) || !this.getWorld().nachoSpigotConfig.enableMobAI) {
if ((d0 == 0 && d1 == 0 && d2 == 0 && this.vehicle == null && this.passenger == null) || (!this.getWorld().nachoSpigotConfig.enableMobAI && this instanceof EntityInsentient)) {
return;
}
if (this.loadChunks) {
Expand Down

0 comments on commit dd778e2

Please sign in to comment.