3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-03 01:50:07 +01:00

//regen creates vanilla decorations without error (#1650)

* fix: Feature placement on regen should create chunk

* feat: update adapter jar

* fix: update adapter jar
Dieser Commit ist enthalten in:
Pierre Maurice Schwang 2022-03-28 21:06:26 +02:00 committet von GitHub
Ursprung c45b14a52d
Commit 2276d82d2c
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23
3 geänderte Dateien mit 12 neuen und 4 gelöschten Zeilen

Datei anzeigen

@ -312,8 +312,12 @@ public class PaperweightRegen extends Regenerator<ChunkAccess, ProtoChunk, Level
) { ) {
// redirect to LevelChunks created in #createChunks // redirect to LevelChunks created in #createChunks
@Override @Override
public ChunkAccess getChunk(int x, int z, ChunkStatus chunkstatus, boolean flag) { public ChunkAccess getChunk(int x, int z, ChunkStatus chunkstatus, boolean create) {
return getChunkAt(x, z); ChunkAccess chunkAccess = getChunkAt(x, z);
if (chunkAccess == null && create) {
chunkAccess = createChunk(getProtoChunkAt(x, z));
}
return chunkAccess;
} }
}; };

Datei anzeigen

@ -299,8 +299,12 @@ public class PaperweightRegen extends Regenerator<ChunkAccess, ProtoChunk, Level
) { ) {
// redirect to LevelChunks created in #createChunks // redirect to LevelChunks created in #createChunks
@Override @Override
public ChunkAccess getChunk(int x, int z, ChunkStatus chunkstatus, boolean flag) { public ChunkAccess getChunk(int x, int z, ChunkStatus chunkstatus, boolean create) {
return getChunkAt(x, z); ChunkAccess chunkAccess = getChunkAt(x, z);
if (chunkAccess == null && create) {
chunkAccess = createChunk(getProtoChunkAt(x, z));
}
return chunkAccess;
} }
}; };