close #102
This commit is contained in:
parent
1b1b43dcfe
commit
c4a5f97129
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue