Skip to content
This repository was archived by the owner on Feb 25, 2026. It is now read-only.

Commit 5cfcfd6

Browse files
committed
Critical failsafe update
Teleport failsafe: + ignore teleportation events in the same direction as player movement to. Apparently, Hypixel thinks no legitimate player could ever notice half of their farm magically reappear on the screen.
1 parent 0ab8cdf commit 5cfcfd6

2 files changed

Lines changed: 16 additions & 3 deletions

File tree

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ baseGroup=com.jelly.farmhelperv2
44
mcVersion=1.8.9
55
modid=farmhelperv2
66
modName=FarmHelper
7-
version=2.9.5-1
7+
version=2.9.6
88
shouldRelease=true

src/main/java/com/jelly/farmhelperv2/failsafe/impl/TeleportFailsafe.java

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,19 @@ public void onReceivedPacketDetection(ReceivePacketEvent event) {
159159
return;
160160
}
161161

162+
// This macro check is so dumb. Legit players can also notice that half of their farm reappears out of nowhere and react to it.
163+
// But keep trying to break it, Hypixel staff, this helps me patch and improve them. -yuro
164+
double dx = packetPlayerPos.xCoord - currentPlayerPos.xCoord;
165+
double dy = packetPlayerPos.yCoord - currentPlayerPos.yCoord;
166+
double dz = packetPlayerPos.zCoord - currentPlayerPos.zCoord;
167+
if (mc.thePlayer.motionX * dx + mc.thePlayer.motionZ * dz > 0 && currentPlayerPos.yCoord <= packetPlayerPos.yCoord && Math.abs(dy) < 1 && (Math.abs(dx) < 1 || Math.abs(dz) < 1)) {
168+
LogUtils.sendDebug("[Failsafe] Teleportation in the same direction as movement. Ignoring.");
169+
LogUtils.sendWarning("[Failsafe] Teleport check failsafe was triggered, but the admin teleported you in the same direction you were moving. §c§lDO NOT REACT§e TO THIS OR YOU WILL GET BANNED!");
170+
if (FailsafeNotificationsPage.notifyOnRotationFailsafe)
171+
LogUtils.webhookLog("[Failsafe]\nTeleport check failsafe was triggered, but the admin teleported you in the same direction you were moving. DO NOT REACT TO THIS OR YOU WILL GET BANNED!");
172+
return;
173+
}
174+
162175
rotationBeforeReacting = new Rotation(mc.thePlayer.rotationYaw, mc.thePlayer.rotationPitch);
163176
double distance = currentPlayerPos.distanceTo(packetPlayerPos);
164177

@@ -214,9 +227,9 @@ private void evaluateDisplacement() {
214227
} else {
215228
FailsafeManager.getInstance().emergencyQueue.remove(this);
216229
if (FailsafeManager.getInstance().emergencyQueue.isEmpty()) {
217-
LogUtils.sendWarning("[Failsafe] Teleport check failsafe was triggered but the admin teleported you back. §c§lDO NOT REACT§e TO THIS OR YOU WILL GET BANNED!");
230+
LogUtils.sendWarning("[Failsafe] Teleport check failsafe was triggered, but the admin teleported you back. §c§lDO NOT REACT§e TO THIS OR YOU WILL GET BANNED!");
218231
if (FailsafeNotificationsPage.notifyOnRotationFailsafe)
219-
LogUtils.webhookLog("[Failsafe]\nTeleport check failsafe was triggered but the admin teleported you back. DO NOT REACT TO THIS OR YOU WILL GET BANNED!");
232+
LogUtils.webhookLog("[Failsafe]\nTeleport check failsafe was triggered, but the admin teleported you back. DO NOT REACT TO THIS OR YOU WILL GET BANNED!");
220233
}
221234
}
222235
originalPosition = null;

0 commit comments

Comments
 (0)