SteamWar/FightSystem
Archiviert
13
1

Replay bugfix?
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2022-03-05 20:55:21 +01:00
Ursprung 141f51ee83
Commit a01bc9aaaf
2 geänderte Dateien mit 11 neuen und 16 gelöschten Zeilen

Datei anzeigen

@ -503,14 +503,7 @@ public class PacketProcessor {
boolean drawn = source.readBoolean();
boolean offHand = source.readBoolean();
execSync(() -> {
REntity entity = REntity.getEntity(entityId);
if(entity != null) {
entity.setBowDrawn(drawn, offHand);
} else {
Bukkit.getLogger().log(Level.SEVERE, "Bow drawn of nonexistent player? " + entityId + " " + Arrays.toString(lastPackets.toArray()));
}
});
execSync(() -> REntity.getEntity(entityId).setBowDrawn(drawn, offHand));
}
private void damage() throws IOException {

Datei anzeigen

@ -316,15 +316,17 @@ public interface Recorder {
default void write(int id, Object... objects){
DataOutputStream stream = getStream();
try {
stream.writeByte(id);
for(Object o : objects) {
writeObject(stream, o);
synchronized (stream) {
try {
stream.writeByte(id);
for(Object o : objects) {
writeObject(stream, o);
}
stream.flush();
} catch (IOException e) {
Bukkit.getLogger().log(Level.SEVERE, "Could not write", e);
disable();
}
stream.flush();
} catch (IOException e) {
Bukkit.getLogger().log(Level.SEVERE, "Could not write", e);
disable();
}
}