Skip to content

Commit 4428d59

Browse files
committed
fix: close item out of bounds
1 parent a068b4e commit 4428d59

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import net.minestom.server.inventory.InventoryType;
55
import net.minestom.server.item.ItemStack;
66
import net.minestom.server.item.Material;
7-
import net.swofty.commons.ServerType;
87
import net.swofty.commons.BedwarsGameType;
98
import net.swofty.type.bedwarslobby.OrchestratorConnector;
109
import net.swofty.type.generic.gui.inventory.HypixelInventoryGUI;
@@ -69,7 +68,7 @@ public void run(InventoryPreClickEvent e, HypixelPlayer player) {
6968
});
7069
}
7170

72-
set(GUIClickableItem.getCloseItem(40));
71+
set(GUIClickableItem.getCloseItem(31));
7372
updateItemStacks(getInventory(), getPlayer());
7473
}
7574

type.bedwarslobby/src/main/java/net/swofty/type/bedwarslobby/npcs/DreamNPC.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package net.swofty.type.bedwarslobby.npcs;
22

3+
import net.kyori.adventure.text.Component;
4+
import net.kyori.adventure.text.event.ClickEvent;
35
import net.minestom.server.coordinate.Pos;
46
import net.swofty.commons.ServerType;
57
import net.swofty.commons.StringUtility;
@@ -65,7 +67,9 @@ public boolean looking() {
6567
}
6668

6769
@Override
68-
public void onClick(PlayerClickNPCEvent e) {
69-
e.player().sendMessage("§7You can dream about this :)");
70+
public void onClick(PlayerClickNPCEvent event) {
71+
event.player().sendMessage("§7You can dream about this :)");
72+
event.player().sendMessage(Component.text("§cThis Feature is not there yet. §aOpen a Pull request HERE to get it added quickly!")
73+
.clickEvent(ClickEvent.clickEvent(ClickEvent.Action.OPEN_URL, "https://github.com/Swofty-Developments/HypixelSkyBlock")));
7074
}
7175
}

0 commit comments

Comments
 (0)