mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 06:42:56 +00:00
More ItemStack fixes, thanks @thommy101
This commit is contained in:
1 parent
ac8de88413
commit
9db5a37d4b
24 files changed
+49
-50
No files matched your search
@@ -79,7 +79,7 @@ public class RenderTickHandler
|
||||
}
|
||||
}
|
||||
|
||||
if(player != null && mc.currentScreen == null && player.getItemStackFromSlot(EntityEquipmentSlot.CHEST) != null)
|
||||
if(player != null && mc.currentScreen == null && !player.getItemStackFromSlot(EntityEquipmentSlot.CHEST).isEmpty())
|
||||
{
|
||||
ItemStack stack = player.getItemStackFromSlot(EntityEquipmentSlot.CHEST);
|
||||
|
||||
@@ -179,7 +179,7 @@ public class RenderTickHandler
|
||||
{
|
||||
for(EntityPlayer p : world.playerEntities)
|
||||
{
|
||||
if(!Mekanism.flamethrowerActive.contains(p.getName()) && !p.isSwingInProgress && p.inventory.getCurrentItem() != null && p.inventory.getCurrentItem().getItem() instanceof ItemFlamethrower)
|
||||
if(!Mekanism.flamethrowerActive.contains(p.getName()) && !p.isSwingInProgress && !p.inventory.getCurrentItem().isEmpty() && p.inventory.getCurrentItem().getItem() instanceof ItemFlamethrower)
|
||||
{
|
||||
if(((ItemFlamethrower)p.inventory.getCurrentItem().getItem()).getGas(p.inventory.getCurrentItem()) != null)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user