Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-20 09:50:06 +01:00
Fix regen command
Dieser Commit ist enthalten in:
Ursprung
2cdfac02dc
Commit
232a0ea12f
@ -127,12 +127,15 @@ public class PaperweightRegen extends Regenerator<ChunkAccess, ProtoChunk, Level
|
||||
serverWorldsField.setAccessible(true);
|
||||
|
||||
Field tmpPaperConfigField;
|
||||
Field tmpEnvironmentField;
|
||||
Field tmpFlatBedrockField;
|
||||
try { //only present on paper
|
||||
tmpPaperConfigField = Level.class.getDeclaredField("paperConfig");
|
||||
tmpPaperConfigField.setAccessible(true);
|
||||
tmpEnvironmentField = tmpPaperConfigField.getType().getDeclaredField("environment");
|
||||
tmpEnvironmentField.setAccessible(true);
|
||||
|
||||
tmpFlatBedrockField = tmpPaperConfigField.getType().getDeclaredField("generateFlatBedrock");
|
||||
tmpFlatBedrockField = tmpEnvironmentField.getType().getDeclaredField("generateFlatBedrock");
|
||||
tmpFlatBedrockField.setAccessible(true);
|
||||
} catch (Exception e) {
|
||||
tmpPaperConfigField = null;
|
||||
|
@ -60,9 +60,6 @@ public abstract class ChunkListener implements Listener {
|
||||
Settings.settings().TICK_LIMITER.FALLING, Settings.settings().TICK_LIMITER.ITEMS};
|
||||
|
||||
public ChunkListener() {
|
||||
if (FoliaSupport.isFolia()) {
|
||||
return;
|
||||
}
|
||||
if (Settings.settings().TICK_LIMITER.ENABLED) {
|
||||
PluginManager plm = Bukkit.getPluginManager();
|
||||
Plugin plugin = Fawe.<FaweBukkit>platform().getPlugin();
|
||||
|
@ -89,9 +89,8 @@ public abstract class QueueHandler implements Trimable, Runnable {
|
||||
private long last;
|
||||
private long allocate = 50;
|
||||
|
||||
protected QueueHandler() {
|
||||
// TODO make main thread independent
|
||||
// TaskManager.taskManager().repeat(this, 1);
|
||||
public QueueHandler() {
|
||||
TaskManager.taskManager().repeat(this, 1);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren