Skip to content

Commit

Permalink
fix merge error
Browse files Browse the repository at this point in the history
  • Loading branch information
acrylic-style committed Nov 9, 2024
1 parent 213e9dc commit ebd7b5d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package com.github.mori01231.lifecore.util

import com.github.mori01231.lifecore.DBConnector
import com.github.mori01231.lifecore.LifeCore
import net.minecraft.server.v1_15_R1.NBTTagByteArray
import net.minecraft.nbt.ByteArrayTag
import org.bukkit.Bukkit
import org.bukkit.ChatColor
import org.bukkit.Material
Expand Down Expand Up @@ -141,7 +141,7 @@ object MapDatabaseUtil {
) {
fun toItemStack() =
ItemStack(Material.FILLED_MAP, amount.toInt())
.let { ItemUtil.setTag(it, "SerializedMapData", NBTTagByteArray(data)) }
.let { ItemUtil.setTag(it, "SerializedMapData", ByteArrayTag(data)) }
.apply {
itemMeta = (itemMeta as MapMeta).apply {
mapView = Bukkit.createMap(Bukkit.getWorlds()[0])
Expand Down

0 comments on commit ebd7b5d

Please sign in to comment.