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:
parent
7793d4cd9a
commit
3a5076b439
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -35,7 +35,7 @@ public class SwordItemMixin extends ToolItem implements ISwordItem
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getAttackSpeed()
|
||||
public float fuckMcAfee()
|
||||
{
|
||||
return attackSpeed;
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user