From ebbb656d4568c377ed602c11e719b8994ce93150 Mon Sep 17 00:00:00 2001 From: Camotoy <20743703+DoctorMacc@users.noreply.github.com> Date: Mon, 27 Apr 2020 16:49:24 -0400 Subject: [PATCH] Revert sending message when creative crafting table is used (#440) --- .../translators/inventory/PlayerInventoryTranslator.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/connector/src/main/java/org/geysermc/connector/network/translators/inventory/PlayerInventoryTranslator.java b/connector/src/main/java/org/geysermc/connector/network/translators/inventory/PlayerInventoryTranslator.java index f4560787f..668612c53 100644 --- a/connector/src/main/java/org/geysermc/connector/network/translators/inventory/PlayerInventoryTranslator.java +++ b/connector/src/main/java/org/geysermc/connector/network/translators/inventory/PlayerInventoryTranslator.java @@ -46,8 +46,6 @@ import java.util.List; public class PlayerInventoryTranslator extends InventoryTranslator { - private static final LongArraySet HAS_RECEIVED_MESSAGE = new LongArraySet(); - public PlayerInventoryTranslator() { super(46); } @@ -187,11 +185,6 @@ public class PlayerInventoryTranslator extends InventoryTranslator { //crafting grid is not visible in creative mode in java edition for (InventoryActionData action : actions) { if (action.getSource().getContainerId() == ContainerId.CURSOR && (action.getSlot() >= 28 && 31 >= action.getSlot())) { - if (!HAS_RECEIVED_MESSAGE.contains(session.getPlayerEntity().getEntityId())) { - // TODO: Allow the crafting table to be used with non-standalone versions - session.sendMessage("The creative crafting table cannot be used as it's incompatible with Minecraft: Java Edition."); - HAS_RECEIVED_MESSAGE.add(session.getPlayerEntity().getEntityId()); - } updateInventory(session, inventory); InventoryUtils.updateCursor(session); return;