mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
Fix NPE on Allay#stopDancing while not dancing
This commit is contained in:
parent
bc837647f1
commit
d9107f8c61
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ public class CraftAllay extends CraftCreature implements org.bukkit.entity.Allay
|
||||||
public void stopDancing() {
|
public void stopDancing() {
|
||||||
this.getHandle().forceDancing = false;
|
this.getHandle().forceDancing = false;
|
||||||
this.getHandle().jukeboxPos = null;
|
this.getHandle().jukeboxPos = null;
|
||||||
this.getHandle().setJukeboxPlaying(null, false);
|
this.getHandle().setDancing(false); // Paper - Directly modify set dancing to avoid NPE
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue