12
1

Fix sound, add debug messages
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2022-03-04 22:27:56 +01:00
Ursprung 633965fcd5
Commit f204fff777
3 geänderte Dateien mit 10 neuen und 4 gelöschten Zeilen

Datei anzeigen

@ -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)

Datei anzeigen

@ -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;

Datei anzeigen

@ -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());
}