Skip to content

Commit

Permalink
Merge pull request #4654 from LeoBeliik/transferButtonServer
Browse files Browse the repository at this point in the history
Makes transfer buttons work on servers (oops my bad). Closes #4653
  • Loading branch information
IThundxr authored Feb 9, 2024
2 parents c1ef3dc + 93c8708 commit 7062834
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ private static ITransferManager getProvider(Object te) {

public static boolean accepts(AbstractContainerMenu container, Player player) {
//extracting from the crafting table with the button dups items
if (container instanceof CraftingMenu || container instanceof CreativeModeInventoryScreen.ItemPickerMenu)
if (container instanceof CraftingMenu || (player.level().isClientSide() && container instanceof CreativeModeInventoryScreen.ItemPickerMenu))
return false;

if(hasProvider(container))
Expand Down

0 comments on commit 7062834

Please sign in to comment.