fix observer mapping (#3970)

This commit is contained in:
chris 2023-07-12 19:21:29 +02:00 committed by GitHub
parent 3a0c1b788a
commit 340be2d8a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;