This commit is contained in:
Camotoy 2021-02-20 23:54:15 -05:00
parent f849a5b9f9
commit e2df486eac
No known key found for this signature in database
GPG key ID: 7EEFB66FE798081F
3 changed files with 1 additions and 6 deletions

View file

@ -47,7 +47,6 @@ public class UpstreamPacketHandler extends LoggingPacketHandler {
} }
private boolean translateAndDefault(BedrockPacket packet) { private boolean translateAndDefault(BedrockPacket packet) {
System.out.println(packet.toString());
return PacketTranslatorRegistry.BEDROCK_TRANSLATOR.translate(packet.getClass(), packet, session); return PacketTranslatorRegistry.BEDROCK_TRANSLATOR.translate(packet.getClass(), packet, session);
} }

View file

@ -36,9 +36,6 @@ public class JavaCloseWindowTranslator extends PacketTranslator<ServerCloseWindo
@Override @Override
public void translate(ServerCloseWindowPacket packet, GeyserSession session) { public void translate(ServerCloseWindowPacket packet, GeyserSession session) {
session.addInventoryTask(() -> { session.addInventoryTask(() -> InventoryUtils.closeInventory(session, packet.getWindowId()));
session.getConnector().getLogger().info("Closing window ID " + packet.getWindowId());
InventoryUtils.closeInventory(session, packet.getWindowId());
});
} }
} }

View file

@ -45,7 +45,6 @@ public class JavaOpenWindowTranslator extends PacketTranslator<ServerOpenWindowP
if (packet.getWindowId() == 0) { if (packet.getWindowId() == 0) {
return; return;
} }
session.getConnector().getLogger().info("Opening window ID " + packet.getWindowId());
InventoryTranslator newTranslator = InventoryTranslator.INVENTORY_TRANSLATORS.get(packet.getType()); InventoryTranslator newTranslator = InventoryTranslator.INVENTORY_TRANSLATORS.get(packet.getType());
Inventory openInventory = session.getOpenInventory(); Inventory openInventory = session.getOpenInventory();