mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
//regen creates vanilla decorations without error (#1650)
* fix: Feature placement on regen should create chunk * feat: update adapter jar * fix: update adapter jar
This commit is contained in:
parent
c45b14a52d
commit
2276d82d2c
@ -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;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user