mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-12-02 21:16:45 +01:00
commit
559d4c00bb
1 changed files with 3 additions and 1 deletions
|
@ -77,8 +77,10 @@ public class ItemTranslator {
|
|||
CompoundTag tag = stack.getNbt();
|
||||
IntTag mapId = tag.get("map");
|
||||
|
||||
if (mapId != null)
|
||||
if (mapId != null) {
|
||||
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));
|
||||
|
|
Loading…
Reference in a new issue