mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-07 03:00:29 +01:00
== to equals
This commit is contained in:
parent
5f6a1d2f57
commit
e58cd903d0
@ -31,7 +31,7 @@ public class PlacePermission extends ListeningPermission {
|
||||
|
||||
Player player = event.getPlayer();
|
||||
|
||||
if (event.getItem() != null && CompatibleMaterial.getMaterial(event.getItem()) == CompatibleMaterial.BONE_MEAL)
|
||||
if (event.getItem() != null && CompatibleMaterial.getMaterial(event.getItem()).equals(CompatibleMaterial.BONE_MEAL))
|
||||
cancelAndMessage(event, player, plugin, messageManager);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user