Also clear used modifier if the using item stack changes but we are still using
@@ -101,7 +101,7 @@ public class EquipmentChangeWatcher {
}
// if you scrolled away, we really don't know whether you stopped using an item or not, luckily everything in this method can be safely run multiple times
// TODO 1.19: consider simplier check, such as the tool having the active modifier tag set. Will need to do a bit of work for bows which don't set modifiers though
- if (!entity.isUsingItem()) {
+ if (!entity.isUsingItem() || entity.getItemBySlot(changedSlot) != entity.getUseItem()) {
ModifierUtil.finishUsingItem(entity, tool);
}
}
