9
0
mirror of https://github.com/HibiscusMC/HMCCosmetics.git synced 2025-12-19 15:09:19 +00:00

chore: update HibiscusCommons

This commit is contained in:
lojosho
2025-05-03 09:55:01 -05:00
parent 874a7f5624
commit 3e83d370f8
2 changed files with 2 additions and 2 deletions

View File

@@ -86,7 +86,7 @@ allprojects {
compileOnly("io.github.toxicity188:BetterCommand:1.3") //BetterCommand library compileOnly("io.github.toxicity188:BetterCommand:1.3") //BetterCommand library
//compileOnly("it.unimi.dsi:fastutil:8.5.14") //compileOnly("it.unimi.dsi:fastutil:8.5.14")
compileOnly("org.projectlombok:lombok:1.18.34") compileOnly("org.projectlombok:lombok:1.18.34")
compileOnly("me.lojosho:HibiscusCommons:0.6.2-d21ebed8") compileOnly("me.lojosho:HibiscusCommons:0.6.3-d97e5686")
// Handled by Spigot Library Loader // Handled by Spigot Library Loader
compileOnly("net.kyori:adventure-api:4.19.0") compileOnly("net.kyori:adventure-api:4.19.0")

View File

@@ -433,7 +433,7 @@ public class PlayerGameListener implements Listener {
Player player = event.getPlayer(); Player player = event.getPlayer();
int invTypeClicked = event.getPacket().getIntegers().read(0); int invTypeClicked = event.getPacket().getIntegers().read(0);
int slotClicked = -999; int slotClicked = -999;
if (NMSHandlers.getVersion().isHigherOrEqual(MinecraftVersion.v1_21_4)) { if (NMSHandlers.getVersion().isHigherOrEqual(MinecraftVersion.v1_21_5)) {
slotClicked = event.getPacket().getShorts().read(0); slotClicked = event.getPacket().getShorts().read(0);
} else { } else {
slotClicked = event.getPacket().getIntegers().read(2); slotClicked = event.getPacket().getIntegers().read(2);