mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Fix: Skull rotation issues since 1.20.2 (#4200)
This commit is contained in:
parent
3f0e366bac
commit
e8048ede08
1 changed files with 2 additions and 2 deletions
|
@ -173,8 +173,8 @@ public final class BlockStateValues {
|
|||
}
|
||||
|
||||
if (javaId.contains("wall_skull") || javaId.contains("wall_head")) {
|
||||
String direction = javaId.substring(javaId.lastIndexOf("facing=") + 7);
|
||||
int rotation = switch (direction.substring(0, direction.length() - 1)) {
|
||||
String direction = javaId.substring(javaId.lastIndexOf("facing=") + 7, javaId.lastIndexOf("powered=") - 1);
|
||||
int rotation = switch (direction) {
|
||||
case "north" -> 180;
|
||||
case "west" -> 90;
|
||||
case "east" -> 270;
|
||||
|
|
Loading…
Reference in a new issue