Open conduit connection GUI with more wrenches (#139)

This commit is contained in:
ghostflyby authored and GitHub committed 2023-11-25 16:02:12 +08:00
1 parent 88725a144d
commit 3e7d69f460
2 files changed
+3 -3

No files matched your search

@@ -641,8 +641,8 @@ public class BlockConduitBundle extends BlockEio
@Override
public void onBlockClicked(World world, int x, int y, int z, EntityPlayer player) {
ItemStack equipped = player.getCurrentEquippedItem();
if (!player.isSneaking() || equipped == null || equipped.getItem() != EnderIO.itemYetaWench) {
ITool tool = ToolUtil.getEquippedTool(player);
if (!player.isSneaking() || tool == null || !tool.canUse(player.getCurrentEquippedItem(), player, x, y, z)) {
return;
}
ConduitUtil.openConduitGui(world, x, y, z, player);