Skip to content

Commit

Permalink
Fixed remap problem
Browse files Browse the repository at this point in the history
  • Loading branch information
RaymondBlaze committed Aug 27, 2022
1 parent 4573678 commit 0a5f658
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ jei_version = 9.7.0.209
curios_version = 5.0.7.0
flywheel_version = 0.6.4-90
registrate_version = MC1.18.2-1.1.3
create_version = 0.5.0.c-148
create_version = 0.5.0.d-170

# Mod Properties
maven_group=dev.dev.limonblaze.oriacs
archives_base_name=origins-accessbilities
mod_version=1.0.1
mod_version=1.0.2
mod_id=oriacs
mod_author=LimonBlaze
fml_requirements = [40,)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ public int getBarColor(ItemStack pStack) {
return BAR_COLOR;
}

@Override
public boolean isBarVisible(ItemStack stack) {
return stack.getDamageValue() > 0;
}

@Override
public boolean canBeDepleted() {
return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public abstract class AirCurrentMixin {

@ModifyVariable(
method = "tickAffectedEntities",
at = @At(value = "INVOKE", target = "Lnet/minecraft/world/entity/Entity;setDeltaMovement(Lnet/minecraft/world/phys/Vec3;)V"),
at = @At(value = "INVOKE", target = "Lnet/minecraft/world/entity/Entity;setDeltaMovement(Lnet/minecraft/world/phys/Vec3;)V", remap = true),
name = "entity"
)
private Entity oriacs$applyFreshAirEffect(Entity entity) {
Expand Down

0 comments on commit 0a5f658

Please sign in to comment.