修复客户端换弹额外扣除弹药的问题
This commit is contained in:
parent
6258da944c
commit
8328816ae2
1 changed files with 1 additions and 0 deletions
|
@ -123,6 +123,7 @@ public enum Ammo {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void set(Entity entity, int count) {
|
public void set(Entity entity, int count) {
|
||||||
|
if (entity.level().isClientSide) return;
|
||||||
var cap = entity.getData(ModAttachments.PLAYER_VARIABLE).watch();
|
var cap = entity.getData(ModAttachments.PLAYER_VARIABLE).watch();
|
||||||
|
|
||||||
set(cap, count);
|
set(cap, count);
|
||||||
|
|
Loading…
Add table
Reference in a new issue