More fixes to global NPC scripts not executing on servers, and added more functions to IEntityLivingBase.

This commit is contained in:
Luis C.M committed 2022-12-24 01:46:43 -06:00
1 parent 8d52e9356c
commit 699b24e467
6 files changed
+51 -21

No files matched your search

+1 -1
View File
@@ -178,7 +178,7 @@ public class DataStats {
public float getAttackStrength(){
return attackStrength;
}
public void setAttackStrength(float strength){
public void setAttackStrength(double strength){
attackStrength = (float)(Math.floor(strength));
npc.getEntityAttribute(SharedMonsterAttributes.attackDamage).setBaseValue(attackStrength);
}