mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-28 15:46:01 +00:00
Fix more ItemStack issues
This commit is contained in:
1 parent
cf6a04a65d
commit
6eb8e59f3c
68 files changed
+207
-211
No files matched your search
@@ -81,7 +81,7 @@ public class BlockObsidianTNT extends Block
|
||||
{
|
||||
ItemStack stack = entityplayer.getHeldItem(hand);
|
||||
|
||||
if(stack != null && stack.getItem() == Items.FLINT_AND_STEEL)
|
||||
if(!stack.isEmpty() && stack.getItem() == Items.FLINT_AND_STEEL)
|
||||
{
|
||||
explode(world, pos);
|
||||
world.setBlockToAir(pos);
|
||||
|
||||
Reference in new issue
Block a user