mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-13 17:04:24 +00:00
Have heart-drops respect the doMobLoot gamerule #1386
This commit is contained in:
1 parent
53999baa28
commit
48ac94e2cf
1 file changed
+3
@@ -26,6 +26,9 @@ public class TinkerArmorEvents
|
||||
if (event.entityLiving == null)
|
||||
return;
|
||||
|
||||
if(!event.entityLiving.worldObj.getGameRules().getGameRuleBooleanValue("doMobLoot"))
|
||||
return;
|
||||
|
||||
if (TConstruct.random.nextInt(200) == 0 && event.entityLiving instanceof IMob && event.source.damageType.equals("player"))
|
||||
{
|
||||
ItemStack dropStack = new ItemStack(TinkerArmor.heartCanister, 1, 1);
|
||||
|
||||
Reference in new issue
Block a user