old-bugs

Minecraft: Better than Adventure! mod that brings back bugs from older versions
git clone git://memoryshards.xyz/old-bugs.git
Log | Files | Refs | README | LICENSE

commit 875717f0e620c8aacc50b999f57cf5a069e7ce35
parent cfde9817c1486929dc402c7f651eaecab4fe0a76
Author: Amb0s <ambos@disroot.org>
Date:   Wed, 24 Jan 2024 22:04:43 +0100

Changed configuration file keys and comments

Diffstat:
Msrc/main/java/ambos/oldbugs/OldBugs.java | 24++++++++++++------------
Msrc/main/java/ambos/oldbugs/mixin/EntityBoatMixin.java | 2+-
Msrc/main/java/ambos/oldbugs/mixin/EntityLivingMixin.java | 2+-
Msrc/main/java/ambos/oldbugs/mixin/EntityMinecartMixin.java | 2+-
Msrc/main/java/ambos/oldbugs/mixin/EntityMixin.java | 4++--
5 files changed, 17 insertions(+), 17 deletions(-)

diff --git a/src/main/java/ambos/oldbugs/OldBugs.java b/src/main/java/ambos/oldbugs/OldBugs.java @@ -12,28 +12,28 @@ public class OldBugs implements ModInitializer { public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID); public static final TomlConfigHandler CONFIG; public static final boolean OLD_FIRE_SPREAD; - public static final boolean BOAT_WATER_LIFT; - public static final boolean LADDER_GAP; - public static final boolean MINECART_BOOSTER; - public static final boolean SOUTH_EAST_RULE_LIQUIDS; + public static final boolean BOAT_ELEVATORS; + public static final boolean LADDERS_GAPS; + public static final boolean MINECART_BOOSTERS; + public static final boolean SOUTH_WEST_RULE_LIQUIDS; public static final int FIRE_TICK_RATE; static { Toml toml = new Toml(); toml.addCategory("Bugs"); toml.addEntry("Bugs.old_fire_spread", "Restores fast and large fire spread", true); - toml.addEntry("Bugs.boat_water_lift", "Restores boat elevators", true); - toml.addEntry("Bugs.ladder_gap", "Restores ladders gaps", true); - toml.addEntry("Bugs.minecart_booster", "Restores minecart boosters", true); - toml.addEntry("Bugs.south_east_rule_liquids", "Restores south-west rule for water and lava", true); + toml.addEntry("Bugs.boat_elevators", "Restores boat elevators", true); + toml.addEntry("Bugs.ladders_gaps", "Restores ladders gaps", true); + toml.addEntry("Bugs.minecart_boosters", "Restores minecart boosters", true); + toml.addEntry("Bugs.south_west_rule_liquids", "Restores south-west rule for water and lava", true); toml.addCategory("Settings"); toml.addEntry("Settings.fire_tick_rate", "Sets fire tick rate (requires 'old_fire_spread = true')", 10); CONFIG = new TomlConfigHandler(MOD_ID, toml); OLD_FIRE_SPREAD = CONFIG.getBoolean("Bugs.old_fire_spread"); - BOAT_WATER_LIFT = CONFIG.getBoolean("Bugs.boat_water_lift"); - LADDER_GAP = CONFIG.getBoolean("Bugs.ladder_gap"); - MINECART_BOOSTER = CONFIG.getBoolean("Bugs.minecart_booster"); - SOUTH_EAST_RULE_LIQUIDS = CONFIG.getBoolean("Bugs.south_east_rule_liquids"); + BOAT_ELEVATORS = CONFIG.getBoolean("Bugs.boat_elevators"); + LADDERS_GAPS = CONFIG.getBoolean("Bugs.ladders_gaps"); + MINECART_BOOSTERS = CONFIG.getBoolean("Bugs.minecart_boosters"); + SOUTH_WEST_RULE_LIQUIDS = CONFIG.getBoolean("Bugs.south_west_rule_liquids"); FIRE_TICK_RATE = CONFIG.getInt("Settings.fire_tick_rate"); } diff --git a/src/main/java/ambos/oldbugs/mixin/EntityBoatMixin.java b/src/main/java/ambos/oldbugs/mixin/EntityBoatMixin.java @@ -11,7 +11,7 @@ import ambos.oldbugs.OldBugs; final class EntityBoatMixin { @ModifyConstant(method = "tick", constant = @Constant(doubleValue = 1.0, ordinal = 1)) private double change(double d) { - if (OldBugs.BOAT_WATER_LIFT) { + if (OldBugs.BOAT_ELEVATORS) { return Double.MAX_VALUE; } else { return d; diff --git a/src/main/java/ambos/oldbugs/mixin/EntityLivingMixin.java b/src/main/java/ambos/oldbugs/mixin/EntityLivingMixin.java @@ -14,7 +14,7 @@ import ambos.oldbugs.OldBugs; final class EntityLivingMixin { @Inject(method = "canClimb", at = @At("HEAD"), cancellable = true) public void increaseLadderCoverage(CallbackInfoReturnable<Boolean> cir) { - if (!OldBugs.LADDER_GAP) { + if (!OldBugs.LADDERS_GAPS) { return; } diff --git a/src/main/java/ambos/oldbugs/mixin/EntityMinecartMixin.java b/src/main/java/ambos/oldbugs/mixin/EntityMinecartMixin.java @@ -11,7 +11,7 @@ import ambos.oldbugs.OldBugs; final class EntityMinecartMixin { @ModifyVariable(method = "push", at = @At(value = "STORE"), ordinal = 6) private double change(double d6) { - if (OldBugs.MINECART_BOOSTER) { + if (OldBugs.MINECART_BOOSTERS) { return 0; } else { return d6; diff --git a/src/main/java/ambos/oldbugs/mixin/EntityMixin.java b/src/main/java/ambos/oldbugs/mixin/EntityMixin.java @@ -14,7 +14,7 @@ import ambos.oldbugs.OldBugs; final class EntityMixin { @Inject(method = "checkAndHandleWater", at = @At("HEAD"), cancellable = true) private void onCheckAndHandleWater(CallbackInfoReturnable<Boolean> cir) { - if (!OldBugs.SOUTH_EAST_RULE_LIQUIDS) { + if (!OldBugs.SOUTH_WEST_RULE_LIQUIDS) { return; } @@ -26,7 +26,7 @@ final class EntityMixin { @Inject(method = "isInLava", at = @At("HEAD"), cancellable = true) private void lavaInject(CallbackInfoReturnable<Boolean> cir){ - if (!OldBugs.SOUTH_EAST_RULE_LIQUIDS) { + if (!OldBugs.SOUTH_WEST_RULE_LIQUIDS) { return; }