From 48d87db6e9587915ed19a254bee4180fe48bf8e6 Mon Sep 17 00:00:00 2001 From: mworzala Date: Fri, 26 Jan 2024 02:15:48 -0500 Subject: [PATCH] fix: InventoryCloseStateTest (#111) (cherry picked from commit aec3694a4ab4dcadab39eaa7c77b19d3c09b0067) --- .../net/minestom/server/inventory/InventoryCloseStateTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/test/java/net/minestom/server/inventory/InventoryCloseStateTest.java b/src/test/java/net/minestom/server/inventory/InventoryCloseStateTest.java index 7f62f730f..21d92088f 100644 --- a/src/test/java/net/minestom/server/inventory/InventoryCloseStateTest.java +++ b/src/test/java/net/minestom/server/inventory/InventoryCloseStateTest.java @@ -2,7 +2,6 @@ package net.minestom.server.inventory; import net.kyori.adventure.text.Component; import net.minestom.server.coordinate.Pos; -import net.minestom.server.network.ConnectionState; import net.minestom.server.network.packet.client.play.ClientCloseWindowPacket; import net.minestom.server.network.packet.server.play.CloseWindowPacket; import net.minestom.testing.Env; @@ -28,7 +27,7 @@ public class InventoryCloseStateTest { player.closeInventory(); // Closes the inventory server-side, should send a CloseWindowPacket player.openInventory(inventory); // Send the close window packet - player.addPacketToQueue(ConnectionState.PLAY, new ClientCloseWindowPacket(inventory.getWindowId())); + player.addPacketToQueue(new ClientCloseWindowPacket(inventory.getWindowId())); player.interpretPacketQueue(); packetTracker.assertSingle(closeWindowPacket -> assertEquals(inventory.getWindowId(), closeWindowPacket.windowId())); packetTracker.assertCount(1); // Assert we only get 1 close window packet from the closeInventory(); call