-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7977a46
commit 97e9981
Showing
14 changed files
with
88 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
66 changes: 0 additions & 66 deletions
66
src/main/java/com/example/addon/modules/ModuleExample.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...xample/addon/commands/CommandExample.java → ...erflow_utils/commands/CommandExample.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
src/main/java/xyz/funtimes909/liveoverflow_utils/mixin/MovePacketMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package xyz.funtimes909.liveoverflow_utils.mixin; | ||
|
||
import xyz.funtimes909.liveoverflow_utils.modules.AntiHumanBypass; | ||
import xyz.funtimes909.liveoverflow_utils.util.CoordinateRounder; | ||
import meteordevelopment.meteorclient.systems.modules.Modules; | ||
import net.minecraft.network.packet.c2s.play.PlayerMoveC2SPacket; | ||
import org.spongepowered.asm.mixin.Final; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.Mutable; | ||
import org.spongepowered.asm.mixin.Shadow; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.Inject; | ||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; | ||
|
||
@Mixin(PlayerMoveC2SPacket.class) | ||
public class MovePacketMixin { | ||
@Mutable | ||
@Shadow | ||
@Final | ||
protected double z; | ||
|
||
@Mutable | ||
@Shadow | ||
@Final | ||
protected double x; | ||
|
||
@Inject(at = @At("TAIL"), method = "<init>") | ||
|
||
private void onPlayerMoveC2SPacket(double x, double y, double z, float yaw, float pitch, boolean onGround, boolean changePosition, boolean changeLook, CallbackInfo ci) { | ||
if (!Modules.get().isActive(AntiHumanBypass.class)) { | ||
return; | ||
} | ||
|
||
this.x = CoordinateRounder.roundedDown(x); | ||
this.z = CoordinateRounder.roundedDown(z); | ||
|
||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
src/main/java/xyz/funtimes909/liveoverflow_utils/modules/AntiHumanBypass.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package xyz.funtimes909.liveoverflow_utils.modules; | ||
|
||
import xyz.funtimes909.liveoverflow_utils.LiveoverflowUtils; | ||
import meteordevelopment.meteorclient.systems.modules.Module; | ||
|
||
public class AntiHumanBypass extends Module { | ||
public AntiHumanBypass() { | ||
super(LiveoverflowUtils.CATEGORY, "Anti Human Bypass", "Bypass anti human plugin"); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
src/main/java/xyz/funtimes909/liveoverflow_utils/modules/WorldguardBypass.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package xyz.funtimes909.liveoverflow_utils.modules; | ||
|
||
import xyz.funtimes909.liveoverflow_utils.LiveoverflowUtils; | ||
import meteordevelopment.meteorclient.systems.modules.Module; | ||
|
||
public class WorldguardBypass extends Module { | ||
|
||
public WorldguardBypass() { | ||
super(LiveoverflowUtils.CATEGORY, "world-guard-bypass", "Module to bypass the world border at spawn on LiveOverflow's server"); | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
src/main/java/xyz/funtimes909/liveoverflow_utils/util/CoordinateRounder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package xyz.funtimes909.liveoverflow_utils.util; | ||
|
||
public class CoordinateRounder { | ||
|
||
public static double roundedDown(double num) { | ||
double temp = (double) (Math.round(num*100))/100; | ||
return Math.nextAfter(temp, temp + Math.signum(num)); | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...main/resources/addon-template.mixins.json → .../resources/liveoverflow_utils.mixins.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters