Change from Double to Float

This commit is contained in:
Kam committed 2025-02-27 11:48:03 -05:00
1 parent c4fdf1a7b6
commit d482213c85
8 files changed
+129 -72

No files matched your search

@@ -24,6 +24,7 @@ import net.minecraftforge.event.world.BlockEvent;
import noppes.npcs.api.entity.IPlayer;
import noppes.npcs.api.item.IItemCustomizable;
import noppes.npcs.attribute.AttributeController;
import noppes.npcs.attribute.DamageCalculator;
import noppes.npcs.constants.EnumQuestType;
import noppes.npcs.controllers.CustomEffectController;
import noppes.npcs.controllers.PartyController;
@@ -472,6 +473,12 @@ public class ScriptPlayerEventHandler {
}
if(event.source.getEntity() instanceof EntityPlayer) {
if(event.entityLiving instanceof EntityPlayer){
event.ammount = DamageCalculator.calculateDamagePlayer((EntityPlayer) event.source.getEntity(), (EntityPlayer) event.entityLiving, event.ammount);
} else if (event.entityLiving instanceof EntityNPCInterface){
}
noppes.npcs.scripted.event.PlayerEvent.AttackEvent pevent1 = new noppes.npcs.scripted.event.PlayerEvent.AttackEvent((IPlayer)NpcAPI.Instance().getIEntity((EntityPlayer)event.source.getEntity()), event.entityLiving, event.ammount, event.source);
cancel = cancel || EventHooks.onPlayerAttack(handler, pevent1);
}