mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2026-01-04 15:41:38 +00:00
进一步修复hand
This commit is contained in:
@@ -33,7 +33,7 @@ public class DamageItemFunction<CTX extends Context> extends AbstractConditional
|
||||
} else if (item == null) {
|
||||
return;
|
||||
}
|
||||
EquipmentSlot slot = hand == null ? null : hand == InteractionHand.MAIN_HAND ? EquipmentSlot.MAIN_HAND : EquipmentSlot.OFF_HAND;
|
||||
EquipmentSlot slot = hand == null ? null : hand == InteractionHand.MAIN_HAND ? EquipmentSlot.MAINHAND : EquipmentSlot.OFFHAND;
|
||||
item.hurtAndBreak(amount.getInt(ctx), player, slot);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user