Skip to content

Commit

Permalink
fix: pickup item from creative inventory
Browse files Browse the repository at this point in the history
  • Loading branch information
IWareQ committed Jun 30, 2024
1 parent 01c7244 commit 80833af
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
public class CraftCreativeActionProcessor implements ContainerActionProcessor<CraftCreativeAction> {
@Override
public ActionResponse handle(CraftCreativeAction action, EntityPlayer player, int currentActionIndex, ItemStackRequestAction[] actions, Map<Object, Object> 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);
Expand Down

0 comments on commit 80833af

Please sign in to comment.