Skip to content

Commit

Permalink
prevent copying unlinked proxies
Browse files Browse the repository at this point in the history
  • Loading branch information
FrostyFire1 committed Feb 7, 2025
1 parent ee42e58 commit 942c17d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,10 @@ public void onLeftclick(IGregTechTileEntity aBaseMetaTileEntity, EntityPlayer aP

ItemStack dataStick = aPlayer.inventory.getCurrentItem();
if (!ItemList.Tool_DataStick.isStackEqual(dataStick, false, true)) return;
if (master == null) {
aPlayer.addChatMessage(new ChatComponentText("Can't copy an unlinked proxy!"));
return;
}

NBTTagCompound tag = new NBTTagCompound();
tag.setString("type", "CraftingInputBuffer");
Expand Down

0 comments on commit 942c17d

Please sign in to comment.