From 87ef84286292c75637414e61be1d758bd69c5e18 Mon Sep 17 00:00:00 2001 From: Garkatron <145294535+Garkatron@users.noreply.github.com> Date: Sun, 12 Jan 2025 23:13:02 +0100 Subject: [PATCH] Fixed MixinEntityPlayer.java --- gradle.properties | 6 +++--- .../deus/stanleytemperature/mixin/MixinEntityPlayer.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gradle.properties b/gradle.properties index 2b38d32..b9a7d00 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,7 +1,7 @@ org.gradle.jvmargs=-Xmx2G # BTA -bta_version=7.3-pre3 +bta_version=7.3-pre4 bta_channel=prerelease # Loader @@ -12,6 +12,6 @@ mod_menu_version=3.0.0 halplibe_version=5.0.0 # Mod -mod_version=1.0.0 +mod_version=1.4.3-7.3Pre4 mod_group=deus -mod_name=rpgstuff +mod_name=stanleytemperature diff --git a/src/main/java/deus/stanleytemperature/mixin/MixinEntityPlayer.java b/src/main/java/deus/stanleytemperature/mixin/MixinEntityPlayer.java index 7439901..71636ea 100644 --- a/src/main/java/deus/stanleytemperature/mixin/MixinEntityPlayer.java +++ b/src/main/java/deus/stanleytemperature/mixin/MixinEntityPlayer.java @@ -69,7 +69,7 @@ public void afterUpdate(CallbackInfo ci) { @Inject(method = "hurt(Lnet/minecraft/core/entity/Entity;ILnet/minecraft/core/util/helper/DamageType;)Z", at = @At("RETURN"), remap = false) public void afterPlayerHurt(Entity attacker, int damage, DamageType type, CallbackInfoReturnable cir) { - if (MOD_CONFIG.getConfig().getBoolean("snowballEffects.snowballAffectsTemperature")) { + if (MOD_CONFIG.getConfig().getBoolean("snowballEffects.enabled")) { Object obj = attacker; if (obj instanceof ProjectileSnowball && ((ProjectileSnowball) obj).owner != null) { stanley$decreasePlayerTemperature(MOD_CONFIG.getConfig().getFloat("snowballEffect.snowballEffect"));