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) {
System.out.println(packet.toString());
return PacketTranslatorRegistry.BEDROCK_TRANSLATOR.translate(packet.getClass(), packet, session);
}

View file

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

View file

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