mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-12-27 11:37:36 +01:00
Added SuppressWarnings to classes using deprecated regenerateChunk
This commit is contained in:
parent
baf6571614
commit
fc066a04a3
@ -21,6 +21,7 @@ import world.bentobox.bentobox.lists.Flags;
|
||||
*
|
||||
*/
|
||||
public class CleanSuperFlatListener extends AbstractFlagListener {
|
||||
@SuppressWarnings("deprecation")
|
||||
@EventHandler(priority = EventPriority.LOW, ignoreCancelled = true)
|
||||
public void onChunkLoad(ChunkLoadEvent e) {
|
||||
BentoBox plugin = BentoBox.getInstance();
|
||||
|
@ -1,9 +1,10 @@
|
||||
package world.bentobox.bentobox.managers.island;
|
||||
|
||||
import com.google.common.base.Preconditions;
|
||||
import org.apache.commons.lang.Validate;
|
||||
|
||||
import com.google.common.collect.Table;
|
||||
import com.google.common.collect.TreeBasedTable;
|
||||
import org.apache.commons.lang.Validate;
|
||||
|
||||
import world.bentobox.bentobox.database.objects.Island;
|
||||
|
||||
/**
|
||||
@ -34,7 +35,7 @@ public class IslandGrid {
|
||||
grid.put(island.getMinX(), island.getMinZ(), new Cell(CellState.OCCUPIED, island));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Remove island from grid
|
||||
* @param island - the island to remove
|
||||
@ -51,7 +52,7 @@ public class IslandGrid {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Returns the island at the x,z location or null if there is none.
|
||||
* This includes the full island space, not just the protected area.
|
||||
|
@ -21,6 +21,7 @@ public class DeleteIslandChunks {
|
||||
* @param plugin - plugin object
|
||||
* @param island - island to delete
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
public DeleteIslandChunks(final BentoBox plugin, final Island island) {
|
||||
// Fire event
|
||||
IslandBaseEvent event = IslandEvent.builder().island(island).reason(Reason.DELETE).build();
|
||||
|
Loading…
Reference in New Issue
Block a user