This commit is contained in:
gamma-delta 2022-06-12 11:55:18 -05:00
parent 1b1b43dcfe
commit c4a5f97129

View file

@ -289,6 +289,9 @@ public class RegisterClientStuff {
private static void registerWandOverrides(ItemWand item) {
IClientXplatAbstractions.INSTANCE.registerItemProperty(item, ItemWand.FUNNY_LEVEL_PREDICATE,
(stack, level, holder, holderID) -> {
if (!stack.hasCustomHoverName()) {
return 0;
}
var name = stack.getHoverName().getString().toLowerCase(Locale.ROOT);
if (name.contains("old")) {
return 1f;