3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-11-19 14:30:17 +01:00

Code optimization #2

Dieser Commit ist enthalten in:
strom 2024-06-17 18:24:29 +02:00
Ursprung 2fc44da237
Commit 2cce527868

Datei anzeigen

@ -195,9 +195,7 @@ public final class EntityUtils {
case CHICKEN -> zOffset = -0.1f; case CHICKEN -> zOffset = -0.1f;
case TRADER_LLAMA, LLAMA -> zOffset = -0.3f; case TRADER_LLAMA, LLAMA -> zOffset = -0.3f;
case TEXT_DISPLAY -> { case TEXT_DISPLAY -> {
TextDisplayEntity textDisplay; if (passenger instanceof TextDisplayEntity textDisplay) {
if (passenger instanceof TextDisplayEntity) {
textDisplay = (TextDisplayEntity) passenger;
if (!textDisplay.hasTranslation()) return; if (!textDisplay.hasTranslation()) return;
xOffset = textDisplay.getTranslation().getX(); xOffset = textDisplay.getTranslation().getX();