mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 14:24:35 +00:00
Flamethrowers now use gas
This commit is contained in:
1 parent
8173af50e0
commit
37bc6a07c0
2 files changed
+15
No files matched your search
@@ -45,6 +45,11 @@ public class CommonPlayerTickHandler
|
||||
if(isFlamethrowerOn(player))
|
||||
{
|
||||
player.worldObj.spawnEntityInWorld(new EntityFlame(player));
|
||||
|
||||
if(!player.capabilities.isCreativeMode)
|
||||
{
|
||||
((ItemFlamethrower)player.getCurrentEquippedItem().getItem()).useGas(player.getCurrentEquippedItem());
|
||||
}
|
||||
}
|
||||
|
||||
if(isJetpackOn(player))
|
||||
|
||||
Reference in new issue
Block a user