Full module source: 1 implementation
Every implementation below is the complete module file, verbatim. Expand a client to read its code.
OfflineClientWORLDsrc/main/java/com/jellypudding/offlineclient/modules/world/NoGhostBlocks.javaJava · 31 lines · 1.2 KB
Waits for the server instead of guessing what a click did.
SettingsBreakingPlacing
| 1 | package com.jellypudding.offlineclient.modules.world;
|
| 2 |
|
| 3 | import com.jellypudding.offlineclient.module.Category;
|
| 4 | import com.jellypudding.offlineclient.module.Module;
|
| 5 | import com.jellypudding.offlineclient.setting.BoolSetting;
|
| 6 |
|
| 7 | // FastBreak and FastPlace outrun the server often enough that the guess is wrong.
|
| 8 | public final class NoGhostBlocks extends Module {
|
| 9 |
|
| 10 | private final BoolSetting breaking = new BoolSetting("Breaking",
|
| 11 | "Leave a broken block on screen until the server removes it.", true);
|
| 12 | private final BoolSetting placing = new BoolSetting("Placing",
|
| 13 | "Leave the space clear until the server puts the block there.", true);
|
| 14 |
|
| 15 | public NoGhostBlocks() {
|
| 16 | super("NoGhostBlocks", "Waits for the server instead of guessing what a click did.",
|
| 17 | Category.WORLD);
|
| 18 | addSettings(breaking, placing);
|
| 19 | searchTags("ghost blocks", "resync", "desync", "block sync");
|
| 20 | }
|
| 21 |
|
| 22 | // The integrated server confirms within a tick.
|
| 23 | public boolean holdsBreaks() {
|
| 24 | return isEnabled() && breaking.isOn() && !mc.isLocalServer();
|
| 25 | }
|
| 26 |
|
| 27 | public boolean holdsPlacements() {
|
| 28 | return isEnabled() && placing.isOn() && !mc.isLocalServer();
|
| 29 | }
|
| 30 | }
|
| 31 |
|