Fixed an exception thrown by the equipment interface

This commit is contained in:
Ceikry 2022-07-03 06:36:04 +00:00 committed by Ryan
parent 16353eda20
commit 7cded916c6

View file

@ -81,6 +81,7 @@ public final class EquipmentInterface extends ComponentPlugin {
GameWorld.getPulser().submit(new Pulse(1, p) { GameWorld.getPulser().submit(new Pulse(1, p) {
@Override @Override
public boolean pulse() { public boolean pulse() {
if (item == null) return true;
InteractionListeners.run(item.getId(),0,"equip",p, item); InteractionListeners.run(item.getId(),0,"equip",p, item);
return true; return true;
} }