From fe90f31c4ac235c3b2aa59ea25e210ed5344b562 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Fri, 3 Sep 2021 17:32:49 +0200 Subject: [PATCH 1/2] Possible 1.8 world reset fix Signed-off-by: Lixfel --- .../src/de/steamwar/fightsystem/utils/CraftbukkitWrapper8.java | 1 + 1 file changed, 1 insertion(+) diff --git a/FightSystem_8/src/de/steamwar/fightsystem/utils/CraftbukkitWrapper8.java b/FightSystem_8/src/de/steamwar/fightsystem/utils/CraftbukkitWrapper8.java index 89aedc7..3eb750e 100644 --- a/FightSystem_8/src/de/steamwar/fightsystem/utils/CraftbukkitWrapper8.java +++ b/FightSystem_8/src/de/steamwar/fightsystem/utils/CraftbukkitWrapper8.java @@ -39,6 +39,7 @@ public class CraftbukkitWrapper8 implements CraftbukkitWrapper.ICraftbukkitWrapp public void resetChunk(World world, World backup, int x, int z) { net.minecraft.server.v1_8_R3.World w = ((CraftWorld) world).getHandle(); Chunk chunk = w.getChunkAt(x, z); + ((CraftWorld) backup).getHandle().chunkProviderServer.forceChunkLoad = true; Chunk backupChunk = ((CraftWorld) backup).getHandle().getChunkAt(x, z); System.arraycopy(backupChunk.getSections(), 0, chunk.getSections(), 0, chunk.getSections().length); From d3cff066f5c42a15a6be97bd14b4a293424046f1 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sat, 4 Sep 2021 23:09:50 +0200 Subject: [PATCH 2/2] Correct rotating? Signed-off-by: Lixfel --- .../src/de/steamwar/fightsystem/fight/FightSchematic.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FightSystem_Core/src/de/steamwar/fightsystem/fight/FightSchematic.java b/FightSystem_Core/src/de/steamwar/fightsystem/fight/FightSchematic.java index 4132169..892728c 100644 --- a/FightSystem_Core/src/de/steamwar/fightsystem/fight/FightSchematic.java +++ b/FightSystem_Core/src/de/steamwar/fightsystem/fight/FightSchematic.java @@ -136,7 +136,7 @@ public class FightSchematic extends StateDependent { Config.WaterDepth != 0 ? Config.WaterDepth - WorldeditWrapper.impl.getWaterDepth(clipboard) : 0, -(Config.PasteAligned && Config.BlueToRedZ != 0 ? region.getSizeZ() : dims.getBlockZ())/2.0 ), - new AffineTransform().rotateY(rotate ? 180 : 0) + new AffineTransform().rotateY(rotate ? 180 : 0).translate(rotate ? 0.5 : 0, 0, rotate ? 0.5 : 0) ); Bukkit.getScheduler().runTaskLater(FightSystem.getPlugin(), freezer::disable, 3);