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
5a8814db74
Commit
22d9a487cb
@ -127,12 +127,15 @@ public class PaperweightRegen extends Regenerator<ChunkAccess, ProtoChunk, Level
|
|||||||
serverWorldsField.setAccessible(true);
|
serverWorldsField.setAccessible(true);
|
||||||
|
|
||||||
Field tmpPaperConfigField;
|
Field tmpPaperConfigField;
|
||||||
|
Field tmpEnvironmentField;
|
||||||
Field tmpFlatBedrockField;
|
Field tmpFlatBedrockField;
|
||||||
try { //only present on paper
|
try { //only present on paper
|
||||||
tmpPaperConfigField = Level.class.getDeclaredField("paperConfig");
|
tmpPaperConfigField = Level.class.getDeclaredField("paperConfig");
|
||||||
tmpPaperConfigField.setAccessible(true);
|
tmpPaperConfigField.setAccessible(true);
|
||||||
|
tmpEnvironmentField = tmpPaperConfigField.getType().getDeclaredField("environment");
|
||||||
|
tmpEnvironmentField.setAccessible(true);
|
||||||
|
|
||||||
tmpFlatBedrockField = tmpPaperConfigField.getType().getDeclaredField("generateFlatBedrock");
|
tmpFlatBedrockField = tmpEnvironmentField.getType().getDeclaredField("generateFlatBedrock");
|
||||||
tmpFlatBedrockField.setAccessible(true);
|
tmpFlatBedrockField.setAccessible(true);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
tmpPaperConfigField = null;
|
tmpPaperConfigField = null;
|
||||||
|
@ -60,9 +60,6 @@ public abstract class ChunkListener implements Listener {
|
|||||||
Settings.settings().TICK_LIMITER.FALLING, Settings.settings().TICK_LIMITER.ITEMS};
|
Settings.settings().TICK_LIMITER.FALLING, Settings.settings().TICK_LIMITER.ITEMS};
|
||||||
|
|
||||||
public ChunkListener() {
|
public ChunkListener() {
|
||||||
if (FoliaSupport.isFolia()) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (Settings.settings().TICK_LIMITER.ENABLED) {
|
if (Settings.settings().TICK_LIMITER.ENABLED) {
|
||||||
PluginManager plm = Bukkit.getPluginManager();
|
PluginManager plm = Bukkit.getPluginManager();
|
||||||
Plugin plugin = Fawe.<FaweBukkit>platform().getPlugin();
|
Plugin plugin = Fawe.<FaweBukkit>platform().getPlugin();
|
||||||
|
@ -89,9 +89,8 @@ public abstract class QueueHandler implements Trimable, Runnable {
|
|||||||
private long last;
|
private long last;
|
||||||
private long allocate = 50;
|
private long allocate = 50;
|
||||||
|
|
||||||
protected QueueHandler() {
|
public QueueHandler() {
|
||||||
// TODO make main thread independent
|
TaskManager.taskManager().repeat(this, 1);
|
||||||
// TaskManager.taskManager().repeat(this, 1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren