Temporarily patch random nullpointer

This commit is contained in:
AlexTheCoder 2016-07-02 18:05:26 -04:00
parent 9898b3d95d
commit ffdc7b4be0

View File

@ -160,7 +160,13 @@ public class BlockRestore extends MiniPlugin
public void add(Block block, int toID, byte toData, int fromID, byte fromData, long expireTime, boolean restoreOnBreak)
{
if (!contains(block)) getBlocks().put(block, new BlockRestoreData(block, toID, toData, fromID, fromData, expireTime, 0, restoreOnBreak));
else getData(block).update(toID, toData, expireTime);
else
{
if (getData(block) != null)
{
getData(block).update(toID, toData, expireTime);
}
}
}
public void snow(Block block, byte heightAdd, byte heightMax, long expireTime, long meltDelay, int heightJumps)