mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-23 01:27:33 +01:00
Fix wither crash
This commit is contained in:
parent
db418648ab
commit
226470d743
@ -2,15 +2,15 @@ package net.citizensnpcs.trait.waypoint.triggers;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import net.citizensnpcs.api.persistence.PersistenceLoader;
|
||||
import net.citizensnpcs.api.persistence.Persister;
|
||||
import net.citizensnpcs.api.util.DataKey;
|
||||
|
||||
import org.bukkit.conversations.Prompt;
|
||||
|
||||
import com.google.common.base.Joiner;
|
||||
import com.google.common.collect.Maps;
|
||||
|
||||
import net.citizensnpcs.api.persistence.PersistenceLoader;
|
||||
import net.citizensnpcs.api.persistence.Persister;
|
||||
import net.citizensnpcs.api.util.DataKey;
|
||||
|
||||
public class WaypointTriggerRegistry implements Persister<WaypointTrigger> {
|
||||
@Override
|
||||
public WaypointTrigger create(DataKey root) {
|
||||
@ -54,6 +54,5 @@ public class WaypointTriggerRegistry implements Persister<WaypointTrigger> {
|
||||
addTrigger("delay", DelayTrigger.class, DelayTriggerPrompt.class);
|
||||
addTrigger("teleport", TeleportTrigger.class, TeleportTriggerPrompt.class);
|
||||
addTrigger("speed", SpeedTrigger.class, SpeedTriggerPrompt.class);
|
||||
// addTrigger("pose", PoseTrigger.class, PoseTriggerPrompt.class);
|
||||
}
|
||||
}
|
||||
|
@ -147,8 +147,9 @@ public class WitherController extends MobEntityController {
|
||||
protected void M() {
|
||||
if (npc == null) {
|
||||
super.M();
|
||||
} else {
|
||||
npc.update();
|
||||
}
|
||||
npc.update();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user