修复Bmp2Entity的setWeaponType参数判断错误
This commit is contained in:
parent
f722c6a90c
commit
8edebf84c9
1 changed files with 1 additions and 1 deletions
|
@ -785,7 +785,7 @@ public class Bmp2Entity extends ContainerMobileVehicleEntity implements GeoEntit
|
|||
|
||||
@Override
|
||||
public void setWeaponType(int index, int type) {
|
||||
if (type == 0) entityData.set(WEAPON_TYPE, type);
|
||||
if (index == 0) entityData.set(WEAPON_TYPE, type);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Reference in a new issue