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

fix: GSit integration not working on 2.0.0

This commit is contained in:
LoJoSho
2025-02-01 10:00:28 -06:00
parent c2ea3121bb
commit 14630bfe48
3 changed files with 3 additions and 2 deletions

View File

@@ -98,6 +98,7 @@ allprojects {
compileOnly("com.ticxo.modelengine:ModelEngine:R4.0.2")
compileOnly("com.comphenix.protocol:ProtocolLib:5.3.0")
compileOnly("org.joml:joml:1.10.8")
compileOnly("com.github.Gecolay.GSit:core:2.0.0")
// Lombok <3
annotationProcessor("org.projectlombok:lombok:1.18.36")

View File

@@ -1,7 +1,7 @@
package me.lojosho.hibiscuscommons.hooks.misc;
import dev.geco.gsit.api.event.PlayerGetUpPoseEvent;
import dev.geco.gsit.api.event.PlayerPoseEvent;
import dev.geco.gsit.api.event.PlayerStopPoseEvent;
import me.lojosho.hibiscuscommons.api.events.HibiscusPlayerPoseEvent;
import me.lojosho.hibiscuscommons.hooks.Hook;
import org.bukkit.Bukkit;
@@ -22,7 +22,7 @@ public class HookGSit extends Hook {
}
@EventHandler(ignoreCancelled = true, priority = EventPriority.LOW)
public void onPlayerGetUp(PlayerGetUpPoseEvent event) {
public void onPlayerGetUp(PlayerStopPoseEvent event) {
HibiscusPlayerPoseEvent newEvent = new HibiscusPlayerPoseEvent(this, event.getPlayer(), true);
Bukkit.getPluginManager().callEvent(newEvent);
}

Binary file not shown.