diff --git a/FightSystem_Core/src/de/steamwar/fightsystem/listener/Recording.java b/FightSystem_Core/src/de/steamwar/fightsystem/listener/Recording.java index 04d697a..e319c54 100644 --- a/FightSystem_Core/src/de/steamwar/fightsystem/listener/Recording.java +++ b/FightSystem_Core/src/de/steamwar/fightsystem/listener/Recording.java @@ -133,7 +133,7 @@ public class Recording implements Listener { return packet; } - @EventHandler(priority = EventPriority.HIGH, ignoreCancelled = true) + @EventHandler(priority = EventPriority.HIGH) public void onPlayerMove(PlayerMoveEvent e){ if(isNotSent(e.getPlayer())) return; @@ -160,7 +160,7 @@ public class Recording implements Listener { @EventHandler(priority = EventPriority.HIGH, ignoreCancelled = true) public void onBlockPhysics(BlockPhysicsEvent e){ if(FlatteningWrapper.impl.doRecord(e)) - GlobalRecorder.getInstance().blockChange(e.getBlock()); //TODO ? + GlobalRecorder.getInstance().blockChange(e.getBlock()); } @EventHandler(priority = EventPriority.HIGH, ignoreCancelled = true) diff --git a/FightSystem_Core/src/de/steamwar/fightsystem/record/PacketProcessor.java b/FightSystem_Core/src/de/steamwar/fightsystem/record/PacketProcessor.java index 1e3ebc3..1f4e1bd 100644 --- a/FightSystem_Core/src/de/steamwar/fightsystem/record/PacketProcessor.java +++ b/FightSystem_Core/src/de/steamwar/fightsystem/record/PacketProcessor.java @@ -199,7 +199,7 @@ public class PacketProcessor { int entityId = source.readInt(); int userId = source.readInt(); - execSync(() -> new REntity(entityId, userId)); + execSync(() -> new REntity(entityId, userId)); } private void entityMoves() throws IOException { @@ -364,7 +364,7 @@ public class PacketProcessor { } private void sound() throws IOException { - int rawX = source.readInt() - arenaMinX + Config.ArenaRegion.getMinX(); + int rawX = source.readInt() - arenaMinX; int y = source.readInt() - arenaMinY + Config.BluePasteRegion.getMinY(); int rawZ = source.readInt() - arenaMinZ; diff --git a/FightSystem_Core/src/de/steamwar/fightsystem/record/REntity.java b/FightSystem_Core/src/de/steamwar/fightsystem/record/REntity.java index ceed2f1..0abe2b2 100644 --- a/FightSystem_Core/src/de/steamwar/fightsystem/record/REntity.java +++ b/FightSystem_Core/src/de/steamwar/fightsystem/record/REntity.java @@ -144,6 +144,7 @@ public class REntity { this.uuid = user.getUUID(); this.name = user.getUserName(); + System.out.println(name + " joins"); entities.put(internalId, this); ProtocolAPI.broadcastPacket(getPlayerInfoPacket()); @@ -169,6 +170,11 @@ public class REntity { this.yaw = (byte)((int)(yaw * 256.0F / 360.0F)); this.pitch = (byte)((int)(pitch * 256.0F / 360.0F)); this.headYaw = headYaw; + + if(entityType == EntityType.PLAYER) { + System.out.println("Player moves " + locX + " " + locY + " " + locZ); + } + ProtocolAPI.broadcastPacket(getTeleportPacket()); ProtocolAPI.broadcastPacket(getHeadRotationPacket()); }