3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-12-27 08:30:12 +01:00

fix observer mapping (#3970)

Dieser Commit ist enthalten in:
chris 2023-07-12 19:21:29 +02:00 committet von GitHub
Ursprung 3a0c1b788a
Commit 340be2d8a4
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -89,10 +89,12 @@ public final class BlockRegistryPopulator {
if (bedrockIdentifier.equals("minecraft:observer")) { if (bedrockIdentifier.equals("minecraft:observer")) {
int direction = (int) statesBuilder.remove("facing_direction"); int direction = (int) statesBuilder.remove("facing_direction");
statesBuilder.putString("minecraft:facing_direction", switch (direction) { statesBuilder.putString("minecraft:facing_direction", switch (direction) {
case 0 -> "east"; case 0 -> "down";
case 1 -> "south"; case 1 -> "up";
case 2 -> "north"; case 2 -> "north";
default -> "west"; case 3 -> "south";
case 4 -> "west";
default -> "east";
}); });
} }
return null; return null;