From 928ecdecfaf7ad7a73f142e518db0d0c4b5224a4 Mon Sep 17 00:00:00 2001 From: Anselm Brehme Date: Sun, 8 Oct 2023 18:36:50 +0200 Subject: [PATCH] fix NBTTranslator for TAG_LONG_ARRAY --- .../spongepowered/common/data/persistence/NBTTranslator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/spongepowered/common/data/persistence/NBTTranslator.java b/src/main/java/org/spongepowered/common/data/persistence/NBTTranslator.java index 9bb0f65152c..9d63933562d 100644 --- a/src/main/java/org/spongepowered/common/data/persistence/NBTTranslator.java +++ b/src/main/java/org/spongepowered/common/data/persistence/NBTTranslator.java @@ -181,7 +181,7 @@ private static void setInternal(Tag base, byte type, DataView view, String key) checkNotNull(view); checkNotNull(key); checkArgument(!key.isEmpty()); - checkArgument(type > Constants.NBT.TAG_END && type <= Constants.NBT.TAG_INT_ARRAY); + checkArgument(type > Constants.NBT.TAG_END && type <= Constants.NBT.TAG_LONG_ARRAY); switch (type) { case Constants.NBT.TAG_BYTE: if (key.contains(NBTTranslator.BOOLEAN_IDENTIFIER)) {