From 80833af26626e589d8f29bef9c0e2d6e7e207152 Mon Sep 17 00:00:00 2001 From: Dmitry Luk Date: Sun, 30 Jun 2024 22:38:02 +0500 Subject: [PATCH] fix: pickup item from creative inventory --- .../container/processor/CraftCreativeActionProcessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Allay-Server/src/main/java/org/allaymc/server/container/processor/CraftCreativeActionProcessor.java b/Allay-Server/src/main/java/org/allaymc/server/container/processor/CraftCreativeActionProcessor.java index a58569ef2..790902592 100644 --- a/Allay-Server/src/main/java/org/allaymc/server/container/processor/CraftCreativeActionProcessor.java +++ b/Allay-Server/src/main/java/org/allaymc/server/container/processor/CraftCreativeActionProcessor.java @@ -20,7 +20,7 @@ public class CraftCreativeActionProcessor implements ContainerActionProcessor { @Override public ActionResponse handle(CraftCreativeAction action, EntityPlayer player, int currentActionIndex, ItemStackRequestAction[] actions, Map dataPool) { - if (player.getGameType() != GameType.CREATIVE || player.getGameType() != GameType.SPECTATOR) + if (player.getGameType() != GameType.CREATIVE && player.getGameType() != GameType.SPECTATOR) return error(); var item = CreativeItemRegistry.getRegistry().get(action.getCreativeItemNetworkId() - 1);