Temporarily patch random nullpointer
This commit is contained in:
parent
9898b3d95d
commit
ffdc7b4be0
@ -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)
|
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));
|
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)
|
public void snow(Block block, byte heightAdd, byte heightMax, long expireTime, long meltDelay, int heightJumps)
|
||||||
|
Loading…
Reference in New Issue
Block a user