Update BlockStoneFormations.java
Fixed null itemStack causing crash. Fixes #529 and #519
This commit is contained in:
parent
eb31520be4
commit
53b4d161dc
1 changed files with 2 additions and 1 deletions
|
@ -110,7 +110,8 @@ public class BlockStoneFormations extends BOPBlockWorldDecor implements ISubLoca
|
|||
@Override
|
||||
public boolean canReplace(World world, int x, int y, int z, int side, ItemStack itemStack)
|
||||
{
|
||||
return isValidPosition(world, x, y, z, itemStack.getItemDamage());
|
||||
int metadata = itemStack != null ? itemStack.getItemDamage() : 0;
|
||||
return isValidPosition(world, x, y, z, metadata);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue