Skip to content

Commit

Permalink
Allow nano/quark boots to walk on powder snow 🥶
Browse files Browse the repository at this point in the history
  • Loading branch information
krossgg committed Jan 10, 2025
1 parent 8ea89ab commit 459a89b
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
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;
import net.minecraft.network.chat.Component;
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 459a89b

Please sign in to comment.