Skip to content

Commit

Permalink
Fixed MixinEntityPlayer.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Garkatron committed Jan 12, 2025
1 parent 5df8cb7 commit d233b8a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<Boolean> 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"));
Expand Down

0 comments on commit d233b8a

Please sign in to comment.