== to equals

This commit is contained in:
Fabrizio La Rosa 2020-07-29 00:57:50 +02:00
parent 5f6a1d2f57
commit e58cd903d0

View File

@ -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);
}