mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-11 21:57:40 +00:00
Fix Player vs Player Attribute Bug
This commit is contained in:
1 parent
febffe15e0
commit
0c745fc90b
1 file changed
+1
-1
@@ -501,7 +501,7 @@ public class ScriptPlayerEventHandler {
|
||||
// Player to Player Interaction
|
||||
if (ConfigMain.AttributesEnabled) {
|
||||
if (event.entityLiving instanceof EntityPlayerMP && source instanceof EntityPlayerMP) {
|
||||
event.ammount = AttributeAttackUtil.calculateDamagePlayerToPlayer((EntityPlayer) event.entityLiving, (EntityPlayer) source, event.ammount);
|
||||
event.ammount = AttributeAttackUtil.calculateDamagePlayerToPlayer((EntityPlayer) source, (EntityPlayer) event.entityLiving, event.ammount);
|
||||
} else if (!(event.entityLiving instanceof EntityNPCInterface) && source instanceof EntityPlayer) {
|
||||
event.ammount = AttributeAttackUtil.calculateOutgoing((EntityPlayer) source, event.ammount);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user