mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-25 14:34:28 +00:00
Fix mod tools not hiding facades
This commit is contained in:
1 parent
0ed258ee8c
commit
49523db9be
1 file changed
+6
-5
@@ -46,6 +46,7 @@ import crazypants.enderio.conduit.redstone.IRedstoneConduit;
|
||||
import crazypants.enderio.conduit.redstone.RedstoneConduitNetwork;
|
||||
import crazypants.enderio.conduit.redstone.Signal;
|
||||
import crazypants.enderio.machine.RedstoneControlMode;
|
||||
import crazypants.enderio.tool.ToolUtil;
|
||||
import crazypants.util.BlockCoord;
|
||||
import crazypants.util.DyeColor;
|
||||
|
||||
@@ -239,16 +240,16 @@ public class ConduitUtil {
|
||||
|
||||
public static boolean shouldHeldItemHideFacades(EntityPlayer player) {
|
||||
player = player == null ? EnderIO.proxy.getClientPlayer() : player;
|
||||
if (player == null) {
|
||||
if(player == null) {
|
||||
return false;
|
||||
}
|
||||
ItemStack held = player.getCurrentEquippedItem();
|
||||
if (held != null && held.getItem() instanceof IHideFacades) {
|
||||
return ((IHideFacades)held.getItem()).shouldHideFacades(held, player);
|
||||
if(held != null && held.getItem() instanceof IHideFacades) {
|
||||
return ((IHideFacades) held.getItem()).shouldHideFacades(held, player);
|
||||
}
|
||||
return false;
|
||||
return ToolUtil.isToolEquipped(player);
|
||||
}
|
||||
|
||||
|
||||
public static boolean isConduitEquipped(EntityPlayer player) {
|
||||
player = player == null ? EnderIO.proxy.getClientPlayer() : player;
|
||||
if(player == null) {
|
||||
|
||||
Reference in new issue
Block a user