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:
@@ -80,7 +80,7 @@ allprojects {
|
|||||||
compileOnly("LibsDisguises:LibsDisguises:10.0.21") {
|
compileOnly("LibsDisguises:LibsDisguises:10.0.21") {
|
||||||
exclude("org.spigotmc", "spigot")
|
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")
|
compileOnly("com.ticxo.modelengine:ModelEngine:R4.0.2")
|
||||||
|
|
||||||
// Lombok <3
|
// Lombok <3
|
||||||
|
|||||||
@@ -15,7 +15,8 @@ public class HookCustomFishing extends Hook {
|
|||||||
|
|
||||||
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
|
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
|
||||||
public void onPlayerFish(FishingLootSpawnEvent event) {
|
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);
|
Bukkit.getPluginManager().callEvent(newEvent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user