mirror of
https://github.com/GeyserMC/Geyser.git
synced 2025-04-17 19:12:14 +02:00
don't log to info
This commit is contained in:
parent
218f85ad39
commit
f68100da4e
4 changed files with 7 additions and 5 deletions
core/src/main/java/org/geysermc/geyser
inventory/holder
translator
inventory/chest
protocol/bedrock
util
|
@ -32,6 +32,7 @@ import org.cloudburstmc.protocol.bedrock.packet.BlockEntityDataPacket;
|
|||
import org.cloudburstmc.protocol.bedrock.packet.ContainerClosePacket;
|
||||
import org.cloudburstmc.protocol.bedrock.packet.ContainerOpenPacket;
|
||||
import org.cloudburstmc.protocol.bedrock.packet.UpdateBlockPacket;
|
||||
import org.geysermc.geyser.GeyserImpl;
|
||||
import org.geysermc.geyser.inventory.Container;
|
||||
import org.geysermc.geyser.inventory.Inventory;
|
||||
import org.geysermc.geyser.inventory.LecternContainer;
|
||||
|
@ -182,6 +183,8 @@ public class BlockInventoryHolder extends InventoryHolder {
|
|||
containerOpenPacket.setBlockPosition(container.getHolderPosition());
|
||||
containerOpenPacket.setUniqueEntityId(container.getHolderId());
|
||||
session.sendUpstreamPacket(containerOpenPacket);
|
||||
|
||||
GeyserImpl.getInstance().getLogger().sessionDebugLog(session, containerOpenPacket.toString());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -160,7 +160,7 @@ public class DoubleChestInventoryTranslator extends ChestInventoryTranslator {
|
|||
containerOpenPacket.setUniqueEntityId(inventory.getHolderId());
|
||||
session.sendUpstreamPacket(containerOpenPacket);
|
||||
|
||||
GeyserImpl.getInstance().getLogger().info(containerOpenPacket.toString());
|
||||
GeyserImpl.getInstance().getLogger().sessionDebugLog(session, containerOpenPacket.toString());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -82,11 +82,11 @@ public class BedrockContainerCloseTranslator extends PacketTranslator<ContainerC
|
|||
|
||||
if (openInventory != null) {
|
||||
if (bedrockId == openInventory.getBedrockId()) {
|
||||
GeyserImpl.getInstance().getLogger().debug("bedrock id matches, closing inventory java-side");
|
||||
GeyserImpl.getInstance().getLogger().sessionDebugLog(session, "bedrock id matches, closing inventory java-side");
|
||||
InventoryUtils.sendJavaContainerClose(session, openInventory);
|
||||
InventoryUtils.closeInventory(session, openInventory.getJavaId(), false);
|
||||
} else if (openInventory.isPending()) {
|
||||
GeyserImpl.getInstance().getLogger().info("opening pending inventory!");
|
||||
GeyserImpl.getInstance().getLogger().sessionDebugLog(session, "opening pending inventory!");
|
||||
InventoryUtils.displayInventory(session, openInventory);
|
||||
openInventory.setPending(false);
|
||||
|
||||
|
|
|
@ -97,7 +97,6 @@ public class InventoryUtils {
|
|||
inventory.setPending(true);
|
||||
return;
|
||||
}
|
||||
|
||||
displayInventory(session, inventory);
|
||||
}
|
||||
|
||||
|
@ -183,7 +182,7 @@ public class InventoryUtils {
|
|||
session.getBundleCache().onInventoryClose(inventory);
|
||||
}
|
||||
|
||||
GeyserImpl.getInstance().getLogger().info("Closed inventory: " + inventory.getJavaId() + " is waiting on confirm?" + session.isClosingInventory());
|
||||
GeyserImpl.getInstance().getLogger().sessionDebugLog(session, "Closed inventory: " + inventory.getJavaId() + " is waiting on confirm?" + session.isClosingInventory());
|
||||
session.setOpenInventory(null);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue