mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 15:17:59 +01:00
Properly copy all stack attributes when consuming the bait from a fishing rod
This commit is contained in:
parent
e65838b943
commit
f8ff162d6c
1 changed files with 3 additions and 1 deletions
|
@ -30,7 +30,9 @@ public class BaitedFishingRodItem extends FishingRodItem {
|
|||
|
||||
if (result.getValue().isOf(this)) {
|
||||
ItemStack stack = Items.FISHING_ROD.getDefaultStack();
|
||||
stack.setDamage(result.getValue().getDamage());
|
||||
if (result.getValue().hasNbt()) {
|
||||
stack.setNbt(result.getValue().getNbt().copy());
|
||||
}
|
||||
return TypedActionResult.success(stack, world.isClient());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue