From 567bd469586eb92e90e6dd61c79a9c50a6af0917 Mon Sep 17 00:00:00 2001 From: blockparole <> Date: Thu, 14 Nov 2019 13:17:33 +0100 Subject: [PATCH] invert check to filter EntityItem only --- .../seppuku/impl/module/combat/ObsidianReplaceModule.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/me/rigamortis/seppuku/impl/module/combat/ObsidianReplaceModule.java b/src/main/java/me/rigamortis/seppuku/impl/module/combat/ObsidianReplaceModule.java index efbf172..5f7ed1d 100644 --- a/src/main/java/me/rigamortis/seppuku/impl/module/combat/ObsidianReplaceModule.java +++ b/src/main/java/me/rigamortis/seppuku/impl/module/combat/ObsidianReplaceModule.java @@ -19,7 +19,7 @@ import net.minecraft.block.material.Material; import net.minecraft.block.state.IBlockState; import net.minecraft.client.Minecraft; import net.minecraft.entity.Entity; -import net.minecraft.entity.EntityLivingBase; +import net.minecraft.entity.item.EntityItem; import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.item.ItemBlock; @@ -341,7 +341,7 @@ public final class ObsidianReplaceModule extends Module { } for (Entity entity : mc.world.getEntitiesWithinAABBExcludingEntity(null, new AxisAlignedBB(pos))) { - if (entity instanceof EntityLivingBase) { + if (!(entity instanceof EntityItem)) { return false; } }