diff --git a/src/main/java/net/minestom/server/listener/BlockPlacementListener.java b/src/main/java/net/minestom/server/listener/BlockPlacementListener.java index 81a7776cc..9f74eadb1 100644 --- a/src/main/java/net/minestom/server/listener/BlockPlacementListener.java +++ b/src/main/java/net/minestom/server/listener/BlockPlacementListener.java @@ -19,7 +19,6 @@ import net.minestom.server.inventory.PlayerInventory; import net.minestom.server.item.ItemStack; import net.minestom.server.item.Material; import net.minestom.server.network.packet.client.play.ClientPlayerBlockPlacementPacket; -import net.minestom.server.network.packet.client.play.ClientPlayerDiggingPacket; import net.minestom.server.network.packet.server.play.BlockChangePacket; import net.minestom.server.utils.BlockPosition; import net.minestom.server.utils.Direction; diff --git a/src/main/java/net/minestom/server/listener/PlayerDiggingListener.java b/src/main/java/net/minestom/server/listener/PlayerDiggingListener.java index 25f3bd722..726cc766b 100644 --- a/src/main/java/net/minestom/server/listener/PlayerDiggingListener.java +++ b/src/main/java/net/minestom/server/listener/PlayerDiggingListener.java @@ -11,7 +11,6 @@ import net.minestom.server.instance.block.CustomBlock; import net.minestom.server.inventory.PlayerInventory; import net.minestom.server.item.ItemStack; import net.minestom.server.item.StackingRule; -import net.minestom.server.item.attribute.ItemAttribute; import net.minestom.server.network.packet.client.play.ClientPlayerDiggingPacket; import net.minestom.server.network.packet.server.play.AcknowledgePlayerDiggingPacket; import net.minestom.server.network.packet.server.play.EntityEffectPacket; @@ -19,7 +18,6 @@ import net.minestom.server.network.packet.server.play.RemoveEntityEffectPacket; import net.minestom.server.potion.Potion; import net.minestom.server.potion.PotionEffect; import net.minestom.server.utils.BlockPosition; -import net.minestom.server.utils.NamespaceID; import org.jetbrains.annotations.NotNull; import java.util.List; diff --git a/src/main/java/net/minestom/server/utils/NBTUtils.java b/src/main/java/net/minestom/server/utils/NBTUtils.java index aacce9ac2..7af0c8231 100644 --- a/src/main/java/net/minestom/server/utils/NBTUtils.java +++ b/src/main/java/net/minestom/server/utils/NBTUtils.java @@ -387,7 +387,7 @@ public final class NBTUtils { Set canDestroy = itemStack.getCanDestroy(); if (canDestroy.size() > 0) { NBTList list = new NBTList<>(NBTTypes.TAG_String); - canDestroy.forEach(x -> list.add(new NBTString(x.toString()))); + canDestroy.forEach(x -> list.add(new NBTString(x))); itemNBT.set("CanDestroy", list); } } @@ -397,7 +397,7 @@ public final class NBTUtils { Set canPlaceOn = itemStack.getCanPlaceOn(); if (canPlaceOn.size() > 0) { NBTList list = new NBTList<>(NBTTypes.TAG_String); - canPlaceOn.forEach(x -> list.add(new NBTString(x.toString()))); + canPlaceOn.forEach(x -> list.add(new NBTString(x))); itemNBT.set("CanPlaceOn", list); } }