Skip to content

Commit

Permalink
Add ability for Nano/Quark boots to walk on powder snow 🥶 (#2712)
Browse files Browse the repository at this point in the history
  • Loading branch information
krossgg authored Jan 11, 2025
1 parent 395c6ef commit 0cfac62
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.gregtechceu.gtceu.api.item.IComponentItem;
import com.gregtechceu.gtceu.api.item.component.*;
import com.gregtechceu.gtceu.api.item.component.forge.IComponentCapability;
import com.gregtechceu.gtceu.common.data.GTItems;

import net.minecraft.client.model.HumanoidModel;
import net.minecraft.core.NonNullList;
Expand Down Expand Up @@ -320,4 +321,9 @@ public <T> LazyOptional<T> getCapability(@NotNull final ItemStack itemStack, @No
}
return LazyOptional.empty();
}

@Override
public boolean canWalkOnPowderedSnow(ItemStack stack, LivingEntity wearer) {
return stack.is(GTItems.NANO_BOOTS.asItem()) || stack.is(GTItems.QUANTUM_BOOTS.asItem());
}
}

0 comments on commit 0cfac62

Please sign in to comment.