SteamWar/FightSystem
Archiviert
13
1

Fix rotation
Einige Prüfungen sind fehlgeschlagen
SteamWarCI Build failed

Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2021-12-30 22:19:13 +01:00
Ursprung 3a95a7bd27
Commit 7851d560ad

Datei anzeigen

@ -342,7 +342,10 @@ public class PacketProcessor {
private void sound() throws IOException { private void sound() throws IOException {
int x = source.readInt() - arenaMinX + Config.ArenaRegion.getMinX(); int x = source.readInt() - arenaMinX + Config.ArenaRegion.getMinX();
int y = source.readInt() - arenaMinY + Config.BluePasteRegion.getMinY(); 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 soundName = source.readUTF();
String soundCategory = source.readUTF(); String soundCategory = source.readUTF();