Fixed an exception thrown by the equipment interface
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user