Skip to content

Commit 9ab5f5d

Browse files
committed
fix: close inventory after teleport
1 parent 2eff90c commit 9ab5f5d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

type.bedwarslobby/src/main/java/net/swofty/type/bedwarslobby/gui/GUISlumberLocations.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public void onOpen(InventoryGUIOpenEvent e) {
2222
@Override
2323
public void run(InventoryPreClickEvent e, HypixelPlayer player) {
2424
player.teleport(new Pos(17, 69, 0, -90, 0));
25+
player.closeInventory();
2526
}
2627

2728
@Override
@@ -37,6 +38,7 @@ public ItemStack.Builder getItem(HypixelPlayer player) {
3738
@Override
3839
public void run(InventoryPreClickEvent e, HypixelPlayer player) {
3940
player.teleport(new Pos(43, 69, 0, -90, 0));
41+
player.closeInventory();
4042
}
4143

4244
@Override
@@ -52,6 +54,7 @@ public ItemStack.Builder getItem(HypixelPlayer player) {
5254
@Override
5355
public void run(InventoryPreClickEvent e, HypixelPlayer player) {
5456
player.teleport(new Pos(34.5, 69.5, 15.5, 90, 0));
57+
player.closeInventory();
5558
}
5659

5760
@Override

0 commit comments

Comments
 (0)