Guard against null item stacks in OD -.-. Closes #254

This commit is contained in:
Vincent Lee committed 2016-04-27 17:20:18 -05:00
1 parent f8d18ae769
commit 543b5a1958
1 file changed
+1 -1
@@ -54,7 +54,7 @@ public class SubTileOrechid extends SubTileFunctional {
BlockPos coords = getCoordsToPut();
if(coords != null) {
ItemStack stack = getOreToPut();
if(stack != null) {
if(stack != null && stack.getItem() != null) {
Block block = Block.getBlockFromItem(stack.getItem());
int meta = stack.getItemDamage();
supertile.getWorld().setBlockState(coords, block.getStateFromMeta(meta), 1 | 2);