mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
oops
This commit is contained in:
parent
f849a5b9f9
commit
e2df486eac
3 changed files with 1 additions and 6 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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());
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue