Skip to content
This repository was archived by the owner on Mar 5, 2023. It is now read-only.

Commit 3f62b11

Browse files
authored
Merge pull request #98 from 3arthqu4ke/v.1.7.10
V.1.7.10, Fixes #96, Fixes #95, Better RaytraceBypass
2 parents 6329c51 + eeb07fe commit 3f62b11

7 files changed

Lines changed: 23 additions & 13 deletions

File tree

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ apply plugin: 'maven'
4343

4444
mainClassName = "me.earth.earthhack.installer.main.Main"
4545
group project.modGroup //http://maven.apache.org/guides/mini/guide-naming-conventions.html
46-
project.version = '1.7.9'
46+
project.version = '1.7.10'
4747

4848
boolean VANILLA = false
4949
//noinspection GroovyUnusedAssignment

src/main/java/me/earth/earthhack/impl/Earthhack.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class Earthhack implements Globals
1515
{
1616
private static final Logger LOGGER = LogManager.getLogger("3arthh4ck");
1717
public static final String NAME = "3arthh4ck";
18-
public static final String VERSION = "1.7.9";
18+
public static final String VERSION = "1.7.10";
1919

2020
public static void preInit()
2121
{

src/main/java/me/earth/earthhack/impl/modules/combat/autocrystal/AutoCrystal.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,12 @@ public class AutoCrystal extends Module
152152
protected final Setting<Integer> bypassTicks =
153153
register(new NumberSetting<>("BypassTicks", 10, 0, 20))
154154
.setComplexity(Complexity.Expert);
155+
protected final Setting<Float> rbYaw =
156+
register(new NumberSetting<>("RB-Yaw", 180.0f, 0.0f, 180.0f))
157+
.setComplexity(Complexity.Expert);
158+
protected final Setting<Float> rbPitch =
159+
register(new NumberSetting<>("RB-Pitch", 90.0f, 0.0f, 90.0f))
160+
.setComplexity(Complexity.Expert);
155161
protected final Setting<Integer> bypassRotationTime =
156162
register(new NumberSetting<>("RayBypassRotationTime", 500, 0, 1000))
157163
.setComplexity(Complexity.Expert);

src/main/java/me/earth/earthhack/impl/modules/combat/autocrystal/ListenerMotion.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,15 @@ public void invoke(MotionUpdateEvent event)
9696
if (bypassPos != null) {
9797
float[] rotations =
9898
RotationUtil.getRotationsToTopMiddleUp(bypassPos);
99-
event.setYaw((rotations[0] + 180) % 360);
100-
event.setPitch(-rotations[1]);
99+
float pitch =
100+
rotations[1] == 0.0f && module.rbYaw.getValue() != 0.0f
101+
? 0.0f
102+
: rotations[1] < 0.0f
103+
? rotations[1] + module.rbPitch.getValue()
104+
: rotations[1] - module.rbPitch.getValue();
105+
106+
event.setYaw((rotations[0] + module.rbYaw.getValue()) % 360);
107+
event.setPitch(pitch);
101108
}
102109
}
103110
} else {

src/main/java/me/earth/earthhack/impl/modules/misc/packets/Packets.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public Packets()
137137

138138
new PageBuilder<>(this, page)
139139
.addPage(v -> v == PacketPages.Safe, fastTransactions, miniTeleports)
140-
.addPage(v -> v == PacketPages.Danger, noBookBan)
140+
.addPage(v -> v == PacketPages.Danger, noBookBan, volatileFix)
141141
.register(Visibilities.VISIBILITY_MANAGER);
142142

143143
SimpleData data = new SimpleData(this, "Exploits with packets.");

src/main/java/me/earth/earthhack/impl/util/discord/DiscordPresence.java

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
import me.earth.earthhack.impl.Earthhack;
88
import me.earth.earthhack.impl.modules.misc.rpc.RPC;
99
import me.earth.earthhack.impl.util.math.StopWatch;
10-
import net.minecraft.client.Minecraft;
11-
import net.minecraft.client.gui.GuiMainMenu;
1210
import org.apache.logging.log4j.LogManager;
1311
import org.apache.logging.log4j.Logger;
1412

@@ -36,14 +34,13 @@ public synchronized void start()
3634

3735
LOGGER.info("Initializing Discord RPC");
3836
DiscordEventHandlers handlers = new DiscordEventHandlers();
39-
rpc.Discord_Initialize("964981608941776966", handlers, true, "");
37+
rpc.Discord_Initialize("1010130512439955496", handlers, true, "");
4038
presence.startTimestamp = System.currentTimeMillis() / 1000L;
4139
presence.details = getDetails();
4240
presence.state = module.state.getValue();
43-
presence.largeImageKey = "phobosrpc";
44-
presence.largeImageText = Earthhack.NAME;
45-
presence.smallImageKey = "phobosrpc";
46-
presence.smallImageText = Earthhack.NAME;
41+
presence.largeImageKey = "logo_1024x1024";
42+
presence.smallImageKey = "skin";
43+
presence.smallImageText = Earthhack.NAME + " " + Earthhack.VERSION;
4744
presence.largeImageText = Earthhack.NAME + " " + Earthhack.VERSION;
4845
rpc.Discord_UpdatePresence(DiscordPresence.presence);
4946
StopWatch timer = new StopWatch();

src/main/resources/mcmod.info

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"modid": "earthhack",
44
"name": "3arthh4ck",
55
"description": "A 1.12.2 Anarchy Client.",
6-
"version": "1.7.9",
6+
"version": "1.7.10",
77
"mcversion": "1.12.2",
88
"url": "",
99
"updateUrl": "",

0 commit comments

Comments
 (0)