mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Fix map_uuid nbt type
This commit is contained in:
parent
8807d5d9c6
commit
75f2891ec0
1 changed files with 3 additions and 3 deletions
|
@ -28,10 +28,10 @@ package org.geysermc.connector.network.translators.item.translators.nbt;
|
||||||
import com.github.steveice10.opennbt.tag.builtin.ByteTag;
|
import com.github.steveice10.opennbt.tag.builtin.ByteTag;
|
||||||
import com.github.steveice10.opennbt.tag.builtin.CompoundTag;
|
import com.github.steveice10.opennbt.tag.builtin.CompoundTag;
|
||||||
import com.github.steveice10.opennbt.tag.builtin.IntTag;
|
import com.github.steveice10.opennbt.tag.builtin.IntTag;
|
||||||
import com.github.steveice10.opennbt.tag.builtin.StringTag;
|
import com.github.steveice10.opennbt.tag.builtin.LongTag;
|
||||||
import org.geysermc.connector.network.translators.ItemRemapper;
|
import org.geysermc.connector.network.translators.ItemRemapper;
|
||||||
import org.geysermc.connector.network.translators.item.NbtItemStackTranslator;
|
|
||||||
import org.geysermc.connector.network.translators.item.ItemEntry;
|
import org.geysermc.connector.network.translators.item.ItemEntry;
|
||||||
|
import org.geysermc.connector.network.translators.item.NbtItemStackTranslator;
|
||||||
|
|
||||||
@ItemRemapper
|
@ItemRemapper
|
||||||
public class MapItemTranslator extends NbtItemStackTranslator {
|
public class MapItemTranslator extends NbtItemStackTranslator {
|
||||||
|
@ -41,7 +41,7 @@ public class MapItemTranslator extends NbtItemStackTranslator {
|
||||||
IntTag mapId = itemTag.get("map");
|
IntTag mapId = itemTag.get("map");
|
||||||
|
|
||||||
if (mapId != null) {
|
if (mapId != null) {
|
||||||
itemTag.put(new StringTag("map_uuid", mapId.getValue().toString()));
|
itemTag.put(new LongTag("map_uuid", mapId.getValue()));
|
||||||
itemTag.put(new IntTag("map_name_index", mapId.getValue()));
|
itemTag.put(new IntTag("map_name_index", mapId.getValue()));
|
||||||
itemTag.put(new ByteTag("map_display_players", (byte) 1));
|
itemTag.put(new ByteTag("map_display_players", (byte) 1));
|
||||||
itemTag.remove("map");
|
itemTag.remove("map");
|
||||||
|
|
Loading…
Reference in a new issue