Skip to content

Commit

Permalink
Fixed remap problem #2
Browse files Browse the repository at this point in the history
  • Loading branch information
RaymondBlaze committed Aug 27, 2022
1 parent f90b427 commit 061f34a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ create_version=0.5.0.d-6
# Mod Properties
maven_group=dev.limonblaze.oriacs
archives_base_name=origins-accessbilities
mod_version=1.1.0
mod_version=1.1.1
mod_id=oriacs
mod_author=LimonBlaze
fml_requirements = [43,)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,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 061f34a

Please sign in to comment.