mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-11-14 06:24:12 +01:00
Fix deployer can eat, part 2
This commit is contained in:
parent
485e6c529d
commit
282445d2ac
@ -266,8 +266,6 @@ public class DeployerHandler {
|
|||||||
CompoundNBT tag = stack.getOrCreateTag();
|
CompoundNBT tag = stack.getOrCreateTag();
|
||||||
if (stack.getItem() instanceof SandPaperItem && tag.contains("Polishing"))
|
if (stack.getItem() instanceof SandPaperItem && tag.contains("Polishing"))
|
||||||
player.spawnedItemEffects = ItemStack.read(tag.getCompound("Polishing"));
|
player.spawnedItemEffects = ItemStack.read(tag.getCompound("Polishing"));
|
||||||
if (stack.isFood())
|
|
||||||
player.spawnedItemEffects = stack.copy();
|
|
||||||
|
|
||||||
if (!player.getActiveItemStack().isEmpty())
|
if (!player.getActiveItemStack().isEmpty())
|
||||||
player.setHeldItem(hand, stack.onItemUseFinish(world, player));
|
player.setHeldItem(hand, stack.onItemUseFinish(world, player));
|
||||||
|
Loading…
Reference in New Issue
Block a user