Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
77fa08c12b
Commit
141f51ee83
@ -503,7 +503,14 @@ public class PacketProcessor {
|
|||||||
boolean drawn = source.readBoolean();
|
boolean drawn = source.readBoolean();
|
||||||
boolean offHand = source.readBoolean();
|
boolean offHand = source.readBoolean();
|
||||||
|
|
||||||
execSync(() -> REntity.getEntity(entityId).setBowDrawn(drawn, offHand));
|
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()));
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private void damage() throws IOException {
|
private void damage() throws IOException {
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren