Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-20 06:50:09 +01:00
Fix: Skull rotation issues since 1.20.2 (#4200)
Dieser Commit ist enthalten in:
Ursprung
3f0e366bac
Commit
e8048ede08
@ -173,8 +173,8 @@ public final class BlockStateValues {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (javaId.contains("wall_skull") || javaId.contains("wall_head")) {
|
if (javaId.contains("wall_skull") || javaId.contains("wall_head")) {
|
||||||
String direction = javaId.substring(javaId.lastIndexOf("facing=") + 7);
|
String direction = javaId.substring(javaId.lastIndexOf("facing=") + 7, javaId.lastIndexOf("powered=") - 1);
|
||||||
int rotation = switch (direction.substring(0, direction.length() - 1)) {
|
int rotation = switch (direction) {
|
||||||
case "north" -> 180;
|
case "north" -> 180;
|
||||||
case "west" -> 90;
|
case "west" -> 90;
|
||||||
case "east" -> 270;
|
case "east" -> 270;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren