SteamWar/FightSystem
Archiviert
13
1

WorldReset 1.8 #287

Manuell gemergt
Lixfel hat 2 Commits von worldReset1.8 nach master 2021-09-11 17:59:09 +02:00 zusammengeführt
Nur Änderungen aus Commit fe90f31c4a werden angezeigt - Alle Commits anzeigen

Datei anzeigen

@ -39,6 +39,7 @@ public class CraftbukkitWrapper8 implements CraftbukkitWrapper.ICraftbukkitWrapp
public void resetChunk(World world, World backup, int x, int z) { public void resetChunk(World world, World backup, int x, int z) {
net.minecraft.server.v1_8_R3.World w = ((CraftWorld) world).getHandle(); net.minecraft.server.v1_8_R3.World w = ((CraftWorld) world).getHandle();
Chunk chunk = w.getChunkAt(x, z); Chunk chunk = w.getChunkAt(x, z);
((CraftWorld) backup).getHandle().chunkProviderServer.forceChunkLoad = true;
Chunk backupChunk = ((CraftWorld) backup).getHandle().getChunkAt(x, z); Chunk backupChunk = ((CraftWorld) backup).getHandle().getChunkAt(x, z);
System.arraycopy(backupChunk.getSections(), 0, chunk.getSections(), 0, chunk.getSections().length); System.arraycopy(backupChunk.getSections(), 0, chunk.getSections(), 0, chunk.getSections().length);