mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 13:16:45 +01:00
Fixes #2571
This commit is contained in:
parent
7d7414ebb9
commit
5bb7069c7f
@ -5,6 +5,7 @@ import com.github.intellectualsites.plotsquared.plot.object.PlotInventory;
|
|||||||
import com.github.intellectualsites.plotsquared.plot.object.PlotItemStack;
|
import com.github.intellectualsites.plotsquared.plot.object.PlotItemStack;
|
||||||
import com.github.intellectualsites.plotsquared.plot.object.PlotPlayer;
|
import com.github.intellectualsites.plotsquared.plot.object.PlotPlayer;
|
||||||
import com.github.intellectualsites.plotsquared.plot.util.InventoryUtil;
|
import com.github.intellectualsites.plotsquared.plot.util.InventoryUtil;
|
||||||
|
import com.sk89q.worldedit.bukkit.BukkitAdapter;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.ChatColor;
|
import org.bukkit.ChatColor;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
@ -56,7 +57,7 @@ public class BukkitInventoryUtil extends InventoryUtil {
|
|||||||
if (item == null) {
|
if (item == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
ItemStack stack = new ItemStack(BukkitUtil.getMaterial(item.getBlockState()), item.amount);
|
ItemStack stack = new ItemStack(BukkitAdapter.adapt(item.getType()), item.amount);
|
||||||
ItemMeta meta = null;
|
ItemMeta meta = null;
|
||||||
if (item.name != null) {
|
if (item.name != null) {
|
||||||
meta = stack.getItemMeta();
|
meta = stack.getItemMeta();
|
||||||
|
Loading…
Reference in New Issue
Block a user