9
0
mirror of https://github.com/Xiao-MoMi/Custom-Crops.git synced 2025-12-19 15:09:25 +00:00
This commit is contained in:
XiaoMoMi
2024-06-23 22:17:28 +08:00
parent 701eb7bb97
commit 7089e11810
3 changed files with 4 additions and 4 deletions

View File

@@ -8,7 +8,7 @@ plugins {
allprojects {
project.group = "net.momirealms"
project.version = "3.5.2"
project.version = "3.5.3"
apply<JavaPlugin>()
apply(plugin = "java")

Binary file not shown.

View File

@@ -200,7 +200,7 @@ public class BukkitWorldAdaptor extends AbstractWorldAdaptor {
// load region from local files
try (BufferedInputStream bis = new BufferedInputStream(new FileInputStream(data))) {
DataInputStream dataStream = new DataInputStream(bis);
CRegion region = deserializeRegion(cWorld, dataStream);
CRegion region = deserializeRegion(cWorld, dataStream, regionPos);
dataStream.close();
cWorld.loadRegion(region);
byte[] bytes = region.getChunkBytes(chunkPos);
@@ -348,7 +348,7 @@ public class BukkitWorldAdaptor extends AbstractWorldAdaptor {
return outByteStream.toByteArray();
}
public CRegion deserializeRegion(CWorld world, DataInputStream dataStream) throws IOException {
public CRegion deserializeRegion(CWorld world, DataInputStream dataStream, RegionPos pos) throws IOException {
int regionVersion = dataStream.readByte();
int regionX = dataStream.readInt();
int regionZ = dataStream.readInt();
@@ -363,7 +363,7 @@ public class BukkitWorldAdaptor extends AbstractWorldAdaptor {
dataStream.read(chunkData);
map.put(chunkPos, chunkData);
}
return new CRegion(world, regionPos, map);
return new CRegion(world, pos, map);
}
public byte[] serialize(SerializableChunk serializableChunk) {