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 11b7c7c commit 87ef842
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
org.gradle.jvmargs=-Xmx2G

# BTA
bta_version=7.3-pre3
bta_version=7.3-pre4
bta_channel=prerelease

# Loader
Expand All @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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<Boolean> 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"));
Expand Down

0 comments on commit 87ef842

Please sign in to comment.