mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 01:27:27 +00:00
Small parameter adjustment to ScriptLivingBase.hurt()
This commit is contained in:
1 parent
1478841098
commit
27dce4a90a
1 file changed
+2
-2
@@ -38,11 +38,11 @@ public class ScriptLivingBase<T extends EntityLivingBase> extends ScriptEntity<T
|
||||
entity.attackEntityFrom(DamageSource.generic,damage);
|
||||
}
|
||||
|
||||
public void hurt(ScriptEntity source, float damage){
|
||||
public void hurt(float damage, ScriptEntity source){
|
||||
entity.attackEntityFrom(new EntityDamageSource(source.getTypeName(),source.getMCEntity()),damage);
|
||||
}
|
||||
|
||||
public void hurt(ScriptDamageSource damageSource, float damage){
|
||||
public void hurt(float damage, ScriptDamageSource damageSource){
|
||||
entity.attackEntityFrom(damageSource.getMCDamageSource(),damage);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user