mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Code optimization #2
This commit is contained in:
parent
2fc44da237
commit
2cce527868
1 changed files with 1 additions and 3 deletions
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue