From 7851d560addcf388f99b801adc102f4b9651b798 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Thu, 30 Dec 2021 22:19:13 +0100 Subject: [PATCH] Fix rotation Signed-off-by: Lixfel --- .../src/de/steamwar/fightsystem/record/PacketProcessor.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/FightSystem_Core/src/de/steamwar/fightsystem/record/PacketProcessor.java b/FightSystem_Core/src/de/steamwar/fightsystem/record/PacketProcessor.java index 13638dd..973bded 100644 --- a/FightSystem_Core/src/de/steamwar/fightsystem/record/PacketProcessor.java +++ b/FightSystem_Core/src/de/steamwar/fightsystem/record/PacketProcessor.java @@ -342,7 +342,10 @@ public class PacketProcessor { private void sound() throws IOException { int x = source.readInt() - arenaMinX + Config.ArenaRegion.getMinX(); int y = source.readInt() - arenaMinY + Config.BluePasteRegion.getMinY(); - int z = source.readInt() - arenaMinZ + Config.ArenaRegion.getMinZ(); + int rawZ = source.readInt() - arenaMinZ; + if(rotateZ) + rawZ = Config.ArenaRegion.getSizeZ() - rawZ; + int z = rawZ + Config.ArenaRegion.getMinZ(); String soundName = source.readUTF(); String soundCategory = source.readUTF();