Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
141f51ee83
Commit
a01bc9aaaf
@ -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 {
|
||||
|
@ -316,6 +316,7 @@ public interface Recorder {
|
||||
|
||||
default void write(int id, Object... objects){
|
||||
DataOutputStream stream = getStream();
|
||||
synchronized (stream) {
|
||||
try {
|
||||
stream.writeByte(id);
|
||||
for(Object o : objects) {
|
||||
@ -327,6 +328,7 @@ public interface Recorder {
|
||||
disable();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
default void writeObject(DataOutputStream stream, Object o) throws IOException {
|
||||
if(o instanceof Boolean)
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren