diff --git a/gradle.properties b/gradle.properties index 19e1bfc..45f2d3e 100644 --- a/gradle.properties +++ b/gradle.properties @@ -8,7 +8,7 @@ yarn_mappings = 1.19.2+build.1 loader_version = 0.14.8 # Mod Properties -mod_version = 1.0.2+mc1.19.2 +mod_version = 1.0.3+mc1.19.2 maven_group = committee.nova archives_base_name = MinersLunchbox-fabric diff --git a/minepkg.toml b/minepkg.toml index 242c3a0..ef2b78c 100644 --- a/minepkg.toml +++ b/minepkg.toml @@ -6,7 +6,7 @@ manifestVersion = 0 type = "mod" name = "minerslunchbox" description = "Lunchbox, yum" - version = "1.0.2+mc1.19.2" + version = "1.0.3+mc1.19.2" platform = "fabric" license = "MIT" source = "https://github.com/Nova-Committee/MinersLunchbox" diff --git a/src/main/java/committee/nova/minerslunchbox/item/LunchboxItem.java b/src/main/java/committee/nova/minerslunchbox/item/LunchboxItem.java index eb82d05..e1c7381 100644 --- a/src/main/java/committee/nova/minerslunchbox/item/LunchboxItem.java +++ b/src/main/java/committee/nova/minerslunchbox/item/LunchboxItem.java @@ -127,7 +127,7 @@ public ItemStack finishUsing(ItemStack stack, World world, LivingEntity user) { ItemStack stackToEat = data.getStacks().get(eat); if (!stackToEat.isEmpty()) { if (stackToEat.isFood()) { - data.setStack(eat, user.eatFood(world, stackToEat)); + data.setStack(eat, stackToEat.finishUsing(world, user)); } else { world.spawnEntity(new ItemEntity(world, user.getX(), user.getY(), user.getZ(), stackToEat)); } @@ -235,7 +235,7 @@ private static void eatUntilFull(PlayerEntity user, World world, ItemStack lunch ItemStack stackToEat = data.getStacks().get(eat); if (!stackToEat.isEmpty()) { if (stackToEat.isFood()) { - data.setStack(eat, user.eatFood(world, stackToEat)); + data.setStack(eat, stackToEat.finishUsing(world, user)); } else { world.spawnEntity(new ItemEntity(world, user.getX(), user.getY(), user.getZ(), stackToEat)); } diff --git a/src/main/resources/assets/minerslunchbox/icon.png b/src/main/resources/assets/minerslunchbox/icon.png index 047b91f..eb4d587 100644 Binary files a/src/main/resources/assets/minerslunchbox/icon.png and b/src/main/resources/assets/minerslunchbox/icon.png differ