修复客户端换弹额外扣除弹药的问题

This commit is contained in:
Light_Quanta 2025-07-08 00:13:46 +08:00
parent 6258da944c
commit 8328816ae2
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959

View file

@ -123,6 +123,7 @@ public enum Ammo {
}
public void set(Entity entity, int count) {
if (entity.level().isClientSide) return;
var cap = entity.getData(ModAttachments.PLAYER_VARIABLE).watch();
set(cap, count);