quick npe fix

This commit is contained in:
NewGarbo 2016-01-16 08:20:11 +00:00
parent 1042edb134
commit e71a2d2e48

View File

@ -52,9 +52,9 @@ public class Cannon implements Listener
public void cleanup()
{
_armorStand.remove();
_filler.remove();
_filler2.remove();
if (_armorStand != null) _armorStand.remove();
if (_filler != null) _filler.remove();
if (_filler2 != null) _filler2.remove();
HandlerList.unregisterAll(this);
}