mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-21 04:32:23 +00:00
Guard against null item stacks in OD -.-. Closes #254
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user