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

fix: update custom fishing hook to latest version

This commit is contained in:
LoJoSho
2024-01-07 10:00:09 -06:00
parent eb02a604cd
commit f8b526b140
2 changed files with 3 additions and 2 deletions

View File

@@ -80,7 +80,7 @@ allprojects {
compileOnly("LibsDisguises:LibsDisguises:10.0.21") {
exclude("org.spigotmc", "spigot")
}
compileOnly("com.github.Xiao-MoMi:Custom-Fishing:2.0.7")
compileOnly("com.github.Xiao-MoMi:Custom-Fishing:2.0.10.3")
compileOnly("com.ticxo.modelengine:ModelEngine:R4.0.2")
// Lombok <3

View File

@@ -15,7 +15,8 @@ public class HookCustomFishing extends Hook {
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
public void onPlayerFish(FishingLootSpawnEvent event) {
HibiscusPluginFishEvent newEvent = new HibiscusPluginFishEvent(this, event.getPlayer(), event.getItemStack());
if (event.getItem() == null) return;
HibiscusPluginFishEvent newEvent = new HibiscusPluginFishEvent(this, event.getPlayer(), event.getItem().getItemStack());
Bukkit.getPluginManager().callEvent(newEvent);
}
}