mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
fix observer mapping (#3970)
This commit is contained in:
parent
3a0c1b788a
commit
340be2d8a4
1 changed files with 5 additions and 3 deletions
|
@ -89,10 +89,12 @@ public final class BlockRegistryPopulator {
|
|||
if (bedrockIdentifier.equals("minecraft:observer")) {
|
||||
int direction = (int) statesBuilder.remove("facing_direction");
|
||||
statesBuilder.putString("minecraft:facing_direction", switch (direction) {
|
||||
case 0 -> "east";
|
||||
case 1 -> "south";
|
||||
case 0 -> "down";
|
||||
case 1 -> "up";
|
||||
case 2 -> "north";
|
||||
default -> "west";
|
||||
case 3 -> "south";
|
||||
case 4 -> "west";
|
||||
default -> "east";
|
||||
});
|
||||
}
|
||||
return null;
|
||||
|
|
Loading…
Reference in a new issue