Fixed map name

This commit is contained in:
rtm516 2020-04-12 01:45:31 +01:00 committed by GitHub
parent 68d7f2629a
commit 76e29af6b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

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