forked from RepoMirrors/kami-blue
move isNumberEven to method
This commit is contained in:
parent
44e2ac8efc
commit
948a2cd73c
|
@ -11,6 +11,8 @@ import net.minecraft.network.play.client.CPacketChatMessage;
|
|||
|
||||
import java.util.Random;
|
||||
|
||||
import static me.zeroeightsix.kami.util.InfoCalculator.isNumberEven;
|
||||
|
||||
/**
|
||||
* @author S-B99
|
||||
* Updated by S-B99 on 12/03/20
|
||||
|
@ -89,8 +91,6 @@ public class FancyChat extends Module {
|
|||
return false;
|
||||
}
|
||||
|
||||
private boolean isNumberEven(int i) { return (i & 1) == 0; }
|
||||
|
||||
private String leetSwitch(String i) {
|
||||
switch (i) {
|
||||
case "a":
|
||||
|
|
|
@ -85,4 +85,8 @@ public class InfoCalculator extends Module {
|
|||
return Math.round(value * scale) / scale;
|
||||
}
|
||||
/* End of round */
|
||||
|
||||
/* Is Even */
|
||||
public static boolean isNumberEven(int i) { return (i & 1) == 0; }
|
||||
/* End of Is Even */
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue