fixed npe on cleanup() because it doesn't check if the holograms are null or not. (they may or may not be null at the time of cleanup() being called depending on the current state of the outpost)

This commit is contained in:
NewGarbo 2016-01-07 14:04:26 +00:00
parent d4fdda8ef2
commit 90a06d97b5
1 changed files with 2 additions and 2 deletions

View File

@ -108,8 +108,8 @@ public class Outpost implements Listener
{
_blocks = null;
_preHologram.stop();
_preHologram2.stop();
if (_preHologram != null) _preHologram.stop();
if (_preHologram2 != null) _preHologram2.stop();
_preHologram = null;
_preHologram = null;