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:
Ursprung
2fc44da237
Commit
2cce527868
@ -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();
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren