-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[+] TpsSync, XCarry. Fixed PolygonMeshPatternRenderer crashing, Separ…
…ator setting and sprint mode to AntiHunger
- Loading branch information
1 parent
42e3782
commit 6836135
Showing
10 changed files
with
91 additions
and
11 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 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
43 changes: 43 additions & 0 deletions
43
src/main/java/dev/heliosclient/module/modules/player/TpsSync.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,43 @@ | ||
package dev.heliosclient.module.modules.player; | ||
|
||
import dev.heliosclient.event.SubscribeEvent; | ||
import dev.heliosclient.event.events.TickEvent; | ||
import dev.heliosclient.event.events.player.PacketEvent; | ||
import dev.heliosclient.managers.ModuleManager; | ||
import dev.heliosclient.module.Categories; | ||
import dev.heliosclient.module.Module_; | ||
import dev.heliosclient.module.modules.world.Timer; | ||
import dev.heliosclient.module.settings.BooleanSetting; | ||
import dev.heliosclient.module.settings.SettingGroup; | ||
import dev.heliosclient.system.TickRate; | ||
import dev.heliosclient.util.TimerUtils; | ||
import dev.heliosclient.util.player.BlockIterator; | ||
import net.minecraft.block.Blocks; | ||
import net.minecraft.network.packet.c2s.play.TeleportConfirmC2SPacket; | ||
import net.minecraft.util.math.BlockPos; | ||
|
||
public class TpsSync extends Module_ { | ||
|
||
public TpsSync() { | ||
super("TpsSync", "Syncs you and your actions with the server TPS", Categories.PLAYER); | ||
} | ||
@Override | ||
public void onDisable() { | ||
super.onDisable(); | ||
ModuleManager.get(Timer.class).setOverride(Timer.RESET); | ||
} | ||
|
||
@SubscribeEvent | ||
public void onTick(TickEvent.PLAYER event) { | ||
Timer timer = ModuleManager.get(Timer.class); | ||
if (timer.isActive()) return; | ||
|
||
if(TickRate.INSTANCE.getTPS() > 1){ | ||
timer.setOverride(TickRate.INSTANCE.getTPS() / 20f); | ||
}else{ | ||
timer.setOverride(Timer.RESET); | ||
} | ||
} | ||
|
||
|
||
} |
19 changes: 19 additions & 0 deletions
19
src/main/java/dev/heliosclient/module/modules/player/XCarry.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,19 @@ | ||
package dev.heliosclient.module.modules.player; | ||
|
||
import dev.heliosclient.event.SubscribeEvent; | ||
import dev.heliosclient.event.events.player.PacketEvent; | ||
import dev.heliosclient.module.Categories; | ||
import dev.heliosclient.module.Module_; | ||
import net.minecraft.network.packet.c2s.play.CloseHandledScreenC2SPacket; | ||
|
||
public class XCarry extends Module_ { | ||
public XCarry() { | ||
super("XCarry","eXtra carry in your crafting and other slots", Categories.PLAYER); | ||
} | ||
|
||
@SubscribeEvent | ||
public void onPaketSend(PacketEvent.SEND e) { | ||
if (e.packet instanceof CloseHandledScreenC2SPacket) | ||
e.setCanceled(true); | ||
} | ||
} |
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
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
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