diff --git a/src/main/java/net/minestom/server/entity/Player.java b/src/main/java/net/minestom/server/entity/Player.java index 3d49726ef..d7ae532e4 100644 --- a/src/main/java/net/minestom/server/entity/Player.java +++ b/src/main/java/net/minestom/server/entity/Player.java @@ -37,8 +37,6 @@ import net.minestom.server.event.item.PickupExperienceEvent; import net.minestom.server.event.player.*; import net.minestom.server.instance.Chunk; import net.minestom.server.instance.Instance; -import net.minestom.server.message.ChatMessageType; -import net.minestom.server.message.ChatPosition; import net.minestom.server.inventory.Inventory; import net.minestom.server.inventory.PlayerInventory; import net.minestom.server.item.ItemStack; @@ -293,7 +291,7 @@ public class Player extends LivingEntity implements CommandSender, Localizable, // Tags // FIXME - //this.playerConnection.sendPacket(TagsPacket.getRequiredTagsPacket()); + this.playerConnection.sendPacket(TagsPacket.getRequiredTagsPacket()); // Some client update this.playerConnection.sendPacket(getPropertiesPacket()); // Send default properties diff --git a/src/main/java/net/minestom/server/network/packet/server/play/TagsPacket.java b/src/main/java/net/minestom/server/network/packet/server/play/TagsPacket.java index 16c700f12..421320e04 100644 --- a/src/main/java/net/minestom/server/network/packet/server/play/TagsPacket.java +++ b/src/main/java/net/minestom/server/network/packet/server/play/TagsPacket.java @@ -53,9 +53,10 @@ public class TagsPacket implements ServerPacket { writer.writeVarInt(values.size()); // entries for (NamespaceID name : values) { - Block b = Registries.getBlock(name); - if (b == Block.AIR && !name.toString().equals("minecraft:air")) { + Block b = Block.fromNamespaceId(name); + if (b == null) { writer.writeVarInt(-1); + continue; } writer.writeVarInt(b.getId()); }