[1.16.5] Bee Smoker doesn't use durability
NielsPilgaard opened this issue · 7 comments
Describe the bug
The Bee Smoker never uses durability
To Reproduce
Steps to reproduce the behavior:
- Use the Bee Smoker on a hive
- Observe that it never loses durability
Expected behavior
For the durability to drop.
please complete the following information:
- Forge Version 1.16.5-36.0.46
- Mod Version resourcefulbees-1.16.5-0.5.10b
Original issue: EnigmaticaModpacks/Enigmatica6#1649
interesting.
int damage = player.getItemInHand(hand).getDamageValue();
int maxDamage = player.getItemInHand(hand).getMaxDamage();
if (flag == 1 && damage < maxDamage) {
player.getItemInHand(hand).hurtAndBreak(1, player, player1 -> player1.broadcastBreakEvent(hand));
flag = 0;
} else {
flag++;
}
This is the logic that damages the item. the specific line that does the damaging is a vanilla method. I just have it set to use a durability point every other tick so you can continuously hold it without eating durability too quickly
The smoking behaviour in your video is also different from ours, so I think it's likely you fixed something with the Smoker that isn't released.
OH YEAH! that's right because we fixed the animation issue which may have inadvertently fixed this issue as it would've been unknown at the time
edit: I forgot we've done so much for this next update. I just need to make sure these server bugs are worked out and I think we should be good to work on forge 36.0.48 pending one additional test on some modifications
This is in dev no changes made to smoker. Are you in creative mode by chance?
smoker.mp4
edit: oh I see someone else is having an issue
I was in creative mode actually :P But it persists in survival. It only uses durability if I use the smoker directly into the air.