Correctly compare items in menus.

This commit is contained in:
Brianna 2020-04-08 09:09:20 -04:00
parent 3b5270f300
commit 6ffa4aaba5

View File

@ -56,7 +56,7 @@ public final class MenuClickRegistry {
if (meta == null) return; if (meta == null) return;
@SuppressWarnings("deprecation") @SuppressWarnings("deprecation")
final MenuExecutor executor = executors.get(RegistryKey.fromName(meta.getDisplayName(), CompatibleMaterial.getMaterial(item.getType()))); final MenuExecutor executor = executors.get(RegistryKey.fromName(meta.getDisplayName(), CompatibleMaterial.getMaterial(item)));
if (executor == null) return; if (executor == null) return;