Skip to content

Commit

Permalink
config
Browse files Browse the repository at this point in the history
  • Loading branch information
kuba6000 committed Dec 30, 2024
1 parent b2ff5a0 commit 1795406
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,11 @@ public class FixesConfig {
@Config.RequiresMcRestart
public static boolean fixWrongBlockPlacementDistanceCheck;

@Config.Comment("Fix inventory sync lag: prevents client to check recipes on empty slots. Particularly fixes lag when trying to eat food when full.")
@Config.DefaultBoolean(true)
@Config.RequiresMcRestart
public static boolean fixInventorySyncLag;

/* ====== Minecraft fixes end ===== */

// bukkit fixes
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/com/mitchej123/hodgepodge/mixins/Mixins.java
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,9 @@ public enum Mixins {
"fml.MixinNetworkDispatcher",
"minecraft.NetworkManagerAccessor")
.setApplyIf(() -> FixesConfig.fixBogusIntegratedServerNPEs).addTargetedMod(TargetedMod.VANILLA)),
FIX_LAG_ON_INVENTORY_SYNC(new Builder("Fix inventory sync lag").setPhase(Phase.EARLY)
.addMixinClasses("minecraft.MixinInventoryCrafting").setSide(Side.BOTH)
.setApplyIf(() -> FixesConfig.fixInventorySyncLag).addTargetedMod(TargetedMod.VANILLA)),

FIX_LOGIN_DIMENSION_ID_OVERFLOW(
new Builder("Fix dimension id overflowing when a player first logins on a server").setPhase(Phase.EARLY)
Expand Down

0 comments on commit 1795406

Please sign in to comment.