From 0f49ce2f9d4d0cae49bd2de20c129c9e26b0b79a Mon Sep 17 00:00:00 2001 From: creeper123123321 Date: Sun, 24 Mar 2019 10:59:51 -0300 Subject: [PATCH] Update OpenNBT --- .../ViaVersion/api/type/types/minecraft/NBTType.java | 8 ++++++++ pom.xml | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/common/src/main/java/us/myles/ViaVersion/api/type/types/minecraft/NBTType.java b/common/src/main/java/us/myles/ViaVersion/api/type/types/minecraft/NBTType.java index fcca9de66..f46d994f6 100644 --- a/common/src/main/java/us/myles/ViaVersion/api/type/types/minecraft/NBTType.java +++ b/common/src/main/java/us/myles/ViaVersion/api/type/types/minecraft/NBTType.java @@ -1,6 +1,7 @@ package us.myles.ViaVersion.api.type.types.minecraft; import com.github.steveice10.opennbt.NBTIO; +import com.github.steveice10.opennbt.tag.TagRegistry; import com.github.steveice10.opennbt.tag.builtin.CompoundTag; import com.google.common.base.Preconditions; import io.netty.buffer.ByteBuf; @@ -14,6 +15,13 @@ import java.io.DataOutput; import java.io.DataOutputStream; public class NBTType extends Type { + static { + // We don't need them + TagRegistry.unregister(60); + TagRegistry.unregister(61); + TagRegistry.unregister(65); + } + public NBTType() { super(CompoundTag.class); } diff --git a/pom.xml b/pom.xml index d0f6c01ec..0434b947b 100644 --- a/pom.xml +++ b/pom.xml @@ -81,7 +81,7 @@ com.github.steveice10 opennbt - 1.1-SNAPSHOT + 1.2-SNAPSHOT compile true