Use Float

This commit is contained in:
Kam committed 2025-03-09 13:52:19 -04:00
1 parent 5ab2203a8a
commit 6c1330552b
2 files changed
+2 -2

No files matched your search

@@ -477,7 +477,7 @@ public class ScriptPlayerEventHandler {
if(event.source.getEntity() instanceof EntityPlayer) {
float attackAmount = event.ammount;
if(ConfigMain.AttributesEnabled)
attackAmount = AttributeAttackUtil.calculateOutgoing((EntityPlayer) event.source.getEntity(), event.ammount);
attackAmount = AttributeAttackUtil.calculateOutgoing((EntityPlayer) event.source.getEntity(), attackAmount);
noppes.npcs.scripted.event.PlayerEvent.AttackEvent pevent1 = new noppes.npcs.scripted.event.PlayerEvent.AttackEvent((IPlayer)NpcAPI.Instance().getIEntity((EntityPlayer)event.source.getEntity()), event.entityLiving, attackAmount, event.source);
cancel = cancel || EventHooks.onPlayerAttack(handler, pevent1);