From d233b8a5bb1d716d879f1bc82c7dce2635ecc301 Mon Sep 17 00:00:00 2001 From: Garkatron <145294535+Garkatron@users.noreply.github.com> Date: Sun, 12 Jan 2025 23:14:37 +0100 Subject: [PATCH] Fixed MixinEntityPlayer.java --- .../java/deus/stanleytemperature/mixin/MixinEntityPlayer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/deus/stanleytemperature/mixin/MixinEntityPlayer.java b/src/main/java/deus/stanleytemperature/mixin/MixinEntityPlayer.java index f90e2df..5f2f03c 100644 --- a/src/main/java/deus/stanleytemperature/mixin/MixinEntityPlayer.java +++ b/src/main/java/deus/stanleytemperature/mixin/MixinEntityPlayer.java @@ -66,7 +66,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 EntitySnowball && ((EntitySnowball) obj).owner != null) { stanley$decreasePlayerTemperature(MOD_CONFIG.getConfig().getFloat("snowballEffect.snowballEffect"));