From 30b594c16bb870c133e9e565f83e9b9f5cd1e20a Mon Sep 17 00:00:00 2001 From: Jacob Pearson Date: Fri, 22 Feb 2019 01:22:13 -0500 Subject: [PATCH] Closes Ellpeck#1230 (#1231) Fix solid experience dropping when doMobLoot is set to false --- .../actuallyadditions/mod/items/ItemSolidifiedExperience.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/items/ItemSolidifiedExperience.java b/src/main/java/de/ellpeck/actuallyadditions/mod/items/ItemSolidifiedExperience.java index 3e9396374..b14deb15d 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/items/ItemSolidifiedExperience.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/items/ItemSolidifiedExperience.java @@ -41,7 +41,7 @@ public class ItemSolidifiedExperience extends ItemBase{ @SubscribeEvent public void onEntityDropEvent(LivingDropsEvent event){ if(ConfigBoolValues.DO_XP_DROPS.isEnabled()){ - if(event.getEntityLiving().world != null && !event.getEntityLiving().world.isRemote && event.getSource().getTrueSource() instanceof EntityPlayer){ + if(event.getEntityLiving().world != null && !event.getEntityLiving().world.isRemote && event.getSource().getTrueSource() instanceof EntityPlayer && event.getEntityLiving().world.getGameRules().getBoolean("doMobLoot")){ //Drop Solidified XP if(event.getEntityLiving() instanceof EntityCreature){ if(event.getEntityLiving().world.rand.nextInt(10) <= event.getLootingLevel()*2){