Skip to content

Commit

Permalink
Fixed a bug with a mixin in a production environment
Browse files Browse the repository at this point in the history
  • Loading branch information
apace100 committed Jul 10, 2020
1 parent 6356ede commit ce4b17f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ org.gradle.jvmargs=-Xmx1G
loader_version=0.8.9+build.203

# Mod Properties
mod_version = 1.16-0.2.0
mod_version = 1.16-0.2.1
maven_group = io.github.apace100.origins
archives_base_name = Origins

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public void damage(DamageSource source, float amount, CallbackInfoReturnable<Boo
}
}

@ModifyVariable(method = "damage", at = @At(value = "FIELD", target = "Lnet/minecraft/entity/LivingEntity;despawnCounter:I"), name = "amount")
@ModifyVariable(method = "damage", at = @At(value = "FIELD", target = "Lnet/minecraft/entity/LivingEntity;despawnCounter:I"), ordinal = 0, argsOnly = true)
private float modifyDamageAmount(float originalAmount, DamageSource source, float amount) {
if((Object)this instanceof PlayerEntity) {
OriginComponent component = ModComponents.ORIGIN.get(this);
Expand Down

0 comments on commit ce4b17f

Please sign in to comment.