mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-23 18:55:30 +01:00
Correctly compare items in menus.
This commit is contained in:
parent
3b5270f300
commit
6ffa4aaba5
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user