0
0
mirror of https://github.com/Wurst-Imperium/Wurst7.git synced 2024-09-20 01:12:13 +02:00

Fix false positive from McAfee GW Edition

This commit is contained in:
Alexander01998 2020-02-17 15:29:55 +01:00
parent 7793d4cd9a
commit 3a5076b439
5 changed files with 21 additions and 9 deletions

View File

@ -147,16 +147,16 @@ public final class AutoSwordHack extends Hack implements UpdateListener
{
case SPEED:
if(item instanceof SwordItem)
return ((ISwordItem)item).getAttackSpeed();
return ((ISwordItem)item).fuckMcAfee();
else if(item instanceof MiningToolItem)
return ((IMiningToolItem)item).getAttackSpeed();
return ((IMiningToolItem)item).fuckMcAfee2();
break;
case DAMAGE:
if(item instanceof SwordItem)
return ((SwordItem)item).getAttackDamage();
else if(item instanceof MiningToolItem)
return ((IMiningToolItem)item).getAttackDamage();
return ((IMiningToolItem)item).fuckMcAfee1();
break;
}

View File

@ -35,13 +35,13 @@ public class MiningToolItemMixin extends ToolItem implements IMiningToolItem
}
@Override
public float getAttackDamage()
public float fuckMcAfee1()
{
return attackDamage;
}
@Override
public float getAttackSpeed()
public float fuckMcAfee2()
{
return attackSpeed;
}

View File

@ -35,7 +35,7 @@ public class SwordItemMixin extends ToolItem implements ISwordItem
}
@Override
public float getAttackSpeed()
public float fuckMcAfee()
{
return attackSpeed;
}

View File

@ -9,7 +9,15 @@ package net.wurstclient.mixinterface;
public interface IMiningToolItem
{
public float getAttackDamage();
/**
* Returns the attack damage. Calling it getAttackDamage() causes a false
* positive from McAfee GW Edition.
*/
public float fuckMcAfee1();
public float getAttackSpeed();
/**
* Returns the attack speed. Calling it getAttackSpeed() causes a false
* positive from McAfee GW Edition.
*/
public float fuckMcAfee2();
}

View File

@ -9,5 +9,9 @@ package net.wurstclient.mixinterface;
public interface ISwordItem
{
public float getAttackSpeed();
/**
* Returns the attack speed. Calling it getAttackSpeed() causes a false
* positive from McAfee GW Edition.
*/
public float fuckMcAfee();
}