Skip to content

Commit 4f1660d

Browse files
committed
Include all the new maps in MapMeta
1 parent aa34f56 commit 4f1660d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemMetas.java‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import net.minecraft.world.item.BundleItem;
88
import net.minecraft.world.item.Item;
99
import net.minecraft.world.item.ItemStack;
10+
import net.minecraft.world.item.MapItem;
1011
import net.minecraft.world.item.SpawnEggItem;
1112
import net.minecraft.world.level.block.Block;
1213
import net.minecraft.world.level.block.EntityBlock;
@@ -202,7 +203,7 @@ public static <I extends ItemMeta> ItemMetaData<I> getItemMetaData(CraftItemType
202203
|| itemType == ItemType.LINGERING_POTION || itemType == ItemType.TIPPED_ARROW) {
203204
return CraftItemMetas.asType(CraftItemMetas.POTION_META_DATA);
204205
}
205-
if (itemType == ItemType.FILLED_MAP) {
206+
if (itemHandle instanceof MapItem) {
206207
return CraftItemMetas.asType(CraftItemMetas.MAP_META_DATA);
207208
}
208209
if (itemType == ItemType.FIREWORK_ROCKET) {

0 commit comments

Comments
 (0)