mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 21:38:00 +01:00
The worm is no longer consumed when using the item in creative mode
This commit is contained in:
parent
ff18b2d4f0
commit
b3a46b0035
1 changed files with 8 additions and 6 deletions
|
@ -36,6 +36,7 @@ public class BaitedFishingRodItem extends FishingRodItem {
|
|||
world.spawnEntity(bobber);
|
||||
}
|
||||
|
||||
if (!user.isCreative()) {
|
||||
if (oldFishHook != null
|
||||
&& oldFishHook.getHookedEntity() == null
|
||||
&& oldFishHook.getDataTracker().get(FishingBobberEntity.CAUGHT_FISH)
|
||||
|
@ -44,6 +45,7 @@ public class BaitedFishingRodItem extends FishingRodItem {
|
|||
return TypedActionResult.success(stack, world.isClient());
|
||||
}
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue