Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
Camotoy committed Feb 21, 2021
1 parent f849a5b commit e2df486
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ public UpstreamPacketHandler(GeyserConnector connector, GeyserSession session) {
}

private boolean translateAndDefault(BedrockPacket packet) {
System.out.println(packet.toString());
return PacketTranslatorRegistry.BEDROCK_TRANSLATOR.translate(packet.getClass(), packet, session);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ public void translate(ServerOpenWindowPacket packet, GeyserSession session) {
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();
Expand Down

0 comments on commit e2df486

Please sign in to comment.