mirror of
https://github.com/Xiao-MoMi/Custom-Crops.git
synced 2025-12-19 15:09:25 +00:00
Fixed possible error on insight mode
This commit is contained in:
@@ -101,7 +101,7 @@ public class DebugInsightCommand extends BukkitCommandFeature<CommandSender> imp
|
||||
|
||||
public InsightPlayer(UUID uuid) {
|
||||
this.uuid = uuid;
|
||||
this.task = BukkitCustomCropsPlugin.getInstance().getScheduler().asyncRepeating(this, 50, 50, TimeUnit.MILLISECONDS);
|
||||
this.task = BukkitCustomCropsPlugin.getInstance().getScheduler().asyncRepeating(this, 50, 500, TimeUnit.MILLISECONDS);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -159,8 +159,10 @@ public class DebugInsightCommand extends BukkitCommandFeature<CommandSender> imp
|
||||
}
|
||||
for (ChunkPos pos : chunksToRemove) {
|
||||
HighlightBlocks[] blocks = highlightCache.remove(pos);
|
||||
for (HighlightBlocks block : blocks) {
|
||||
block.destroy(player);
|
||||
if (blocks != null) {
|
||||
for (HighlightBlocks block : blocks) {
|
||||
block.destroy(player);
|
||||
}
|
||||
}
|
||||
}
|
||||
for (ChunkPos pos : nearbyChunks) {
|
||||
|
||||
@@ -57,12 +57,12 @@ public class BukkitWorldManager implements WorldManager, Listener {
|
||||
try {
|
||||
Class.forName("com.infernalsuite.aswm.api.SlimePlugin");
|
||||
adaptors.add(new SlimeWorldAdaptorR1(1));
|
||||
plugin.getPluginLogger().info("SlimeWorldManager support enabled");
|
||||
plugin.getPluginLogger().info("SlimeWorldManager hooked!");
|
||||
} catch (ClassNotFoundException ignored) {
|
||||
}
|
||||
if (Bukkit.getPluginManager().isPluginEnabled("SlimeWorldPlugin")) {
|
||||
adaptors.add(new SlimeWorldAdaptorR1(2));
|
||||
plugin.getPluginLogger().info("AdvancedSlimePaper support enabled");
|
||||
plugin.getPluginLogger().info("AdvancedSlimePaper hooked!");
|
||||
}
|
||||
this.adaptors.add(new BukkitWorldAdaptor());
|
||||
this.seasonProvider = new SeasonProvider() {
|
||||
|
||||
Reference in New Issue
Block a user