Skip to content

Commit

Permalink
fix: Correct Event for Smelting Meats
Browse files Browse the repository at this point in the history
  • Loading branch information
NuclearDonut47 committed Jun 13, 2024
1 parent 55b720d commit a39c400
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ plugins {

group = "me.ShermansWorld"

version = "1.27.0"
version = "1.27.1"
description = ""
val mainPackage = "${project.group}.${rootProject.name}"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
import org.bukkit.Material;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.inventory.FurnaceSmeltEvent;
import org.bukkit.event.block.BlockCookEvent;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;

public class FurnaceRecipesListener implements Listener {
@EventHandler
public void cookedMeats(FurnaceSmeltEvent event) {
public void cookedMeats(BlockCookEvent event) {
if (!event.getSource().getItemMeta().hasCustomModelData()) return;

ItemStack cookedMeat = null;
Expand Down

0 comments on commit a39c400

Please sign in to comment.