3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-11-08 17:20:20 +01:00

Merge pull request #318 from rtm516/patch-1

Fixed map name
Dieser Commit ist enthalten in:
Redned 2020-04-12 16:27:42 -05:00 committet von GitHub
Commit 559d4c00bb
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -77,8 +77,10 @@ public class ItemTranslator {
CompoundTag tag = stack.getNbt(); CompoundTag tag = stack.getNbt();
IntTag mapId = tag.get("map"); IntTag mapId = tag.get("map");
if (mapId != null) if (mapId != null) {
tag.put(new StringTag("map_uuid", mapId.getValue().toString())); tag.put(new StringTag("map_uuid", mapId.getValue().toString()));
tag.put(new IntTag("map_name_index", mapId.getValue()));
}
return ItemData.of(bedrockItem.getBedrockId(), (short) bedrockItem.getBedrockData(), stack.getAmount(), translateToBedrockNBT(tag)); return ItemData.of(bedrockItem.getBedrockId(), (short) bedrockItem.getBedrockData(), stack.getAmount(), translateToBedrockNBT(tag));