Fix unlocked maps getting wrongly locked

feat/data-edit-commands
William 2 years ago
parent d682e6e6c6
commit c4b194f8d6

@ -77,7 +77,7 @@ public class BukkitMapHandler {
}
final MapMeta mapMeta = (MapMeta) itemStack.getItemMeta();
if (mapMeta == null) {
if (mapMeta == null || mapMeta.getMapView() == null || !mapMeta.getMapView().isLocked()) {
return;
}

Loading…
Cancel
Save