I just realized that this prevented people from properly parsing a...
string as a NBT List if the list was composed of strings. I'll just have to add a check to prevent it from creating an NBTIntArrayTag then.
This commit is contained in:
parent
29dae32a79
commit
6193221637
@ -1,6 +1,6 @@
|
|||||||
name: SkStuff
|
name: SkStuff
|
||||||
author: TheBukor
|
author: TheBukor
|
||||||
description: A Skript addon which adds extra functionalities such as NBT and extended WorldEdit support.
|
description: A Skript addon which adds extra functionalities such as NBT and extended WorldEdit support.
|
||||||
version: 1.6.3.5
|
version: 1.6.3.6
|
||||||
main: me.TheBukor.SkStuff.SkStuff
|
main: me.TheBukor.SkStuff.SkStuff
|
||||||
softdepend: [Skript, WorldEdit, VanishNoPacket]
|
softdepend: [Skript, WorldEdit, VanishNoPacket]
|
@ -414,7 +414,7 @@ public class NMS_v1_10_R1 implements NMSInterface {
|
|||||||
@Nullable
|
@Nullable
|
||||||
public NBTTagList parse(String listString, ParseContext context) {
|
public NBTTagList parse(String listString, ParseContext context) {
|
||||||
if (listString.startsWith("[") && listString.endsWith("]")) {
|
if (listString.startsWith("[") && listString.endsWith("]")) {
|
||||||
NBTTagCompound tempNBT = parseRawNBT("{SkStuffIsCool:[0:" + listString.substring(1) + "}");
|
NBTTagCompound tempNBT = parseRawNBT("{SkStuffIsCool:" + listString + "}");
|
||||||
NBTTagList parsedList = (NBTTagList) tempNBT.get("SkStuffIsCool");
|
NBTTagList parsedList = (NBTTagList) tempNBT.get("SkStuffIsCool");
|
||||||
return parsedList;
|
return parsedList;
|
||||||
}
|
}
|
||||||
|
@ -397,7 +397,7 @@ public class NMS_v1_7_R4 implements NMSInterface {
|
|||||||
@Nullable
|
@Nullable
|
||||||
public NBTTagList parse(String listString, ParseContext context) {
|
public NBTTagList parse(String listString, ParseContext context) {
|
||||||
if (listString.startsWith("[") && listString.endsWith("]")) {
|
if (listString.startsWith("[") && listString.endsWith("]")) {
|
||||||
NBTTagCompound tempNBT = parseRawNBT("{SkStuffIsCool:[0:" + listString.substring(1) + "}");
|
NBTTagCompound tempNBT = parseRawNBT("{SkStuffIsCool:" + listString + "}");
|
||||||
NBTTagList parsedList = (NBTTagList) tempNBT.get("SkStuffIsCool");
|
NBTTagList parsedList = (NBTTagList) tempNBT.get("SkStuffIsCool");
|
||||||
return parsedList;
|
return parsedList;
|
||||||
}
|
}
|
||||||
|
@ -412,7 +412,7 @@ public class NMS_v1_8_R3 implements NMSInterface {
|
|||||||
@Nullable
|
@Nullable
|
||||||
public NBTTagList parse(String listString, ParseContext context) {
|
public NBTTagList parse(String listString, ParseContext context) {
|
||||||
if (listString.startsWith("[") && listString.endsWith("]")) {
|
if (listString.startsWith("[") && listString.endsWith("]")) {
|
||||||
NBTTagCompound tempNBT = parseRawNBT("{SkStuffIsCool:[0:" + listString.substring(1) + "}");
|
NBTTagCompound tempNBT = parseRawNBT("{SkStuffIsCool:" + listString + "}");
|
||||||
NBTTagList parsedList = (NBTTagList) tempNBT.get("SkStuffIsCool");
|
NBTTagList parsedList = (NBTTagList) tempNBT.get("SkStuffIsCool");
|
||||||
return parsedList;
|
return parsedList;
|
||||||
}
|
}
|
||||||
|
@ -414,7 +414,7 @@ public class NMS_v1_9_R1 implements NMSInterface {
|
|||||||
@Nullable
|
@Nullable
|
||||||
public NBTTagList parse(String listString, ParseContext context) {
|
public NBTTagList parse(String listString, ParseContext context) {
|
||||||
if (listString.startsWith("[") && listString.endsWith("]")) {
|
if (listString.startsWith("[") && listString.endsWith("]")) {
|
||||||
NBTTagCompound tempNBT = parseRawNBT("{SkStuffIsCool:[0:" + listString.substring(1) + "}");
|
NBTTagCompound tempNBT = parseRawNBT("{SkStuffIsCool:" + listString + "}");
|
||||||
NBTTagList parsedList = (NBTTagList) tempNBT.get("SkStuffIsCool");
|
NBTTagList parsedList = (NBTTagList) tempNBT.get("SkStuffIsCool");
|
||||||
return parsedList;
|
return parsedList;
|
||||||
}
|
}
|
||||||
|
@ -414,7 +414,7 @@ public class NMS_v1_9_R2 implements NMSInterface {
|
|||||||
@Nullable
|
@Nullable
|
||||||
public NBTTagList parse(String listString, ParseContext context) {
|
public NBTTagList parse(String listString, ParseContext context) {
|
||||||
if (listString.startsWith("[") && listString.endsWith("]")) {
|
if (listString.startsWith("[") && listString.endsWith("]")) {
|
||||||
NBTTagCompound tempNBT = parseRawNBT("{SkStuffIsCool:[0:" + listString.substring(1) + "}");
|
NBTTagCompound tempNBT = parseRawNBT("{SkStuffIsCool:" + listString + "}");
|
||||||
NBTTagList parsedList = (NBTTagList) tempNBT.get("SkStuffIsCool");
|
NBTTagList parsedList = (NBTTagList) tempNBT.get("SkStuffIsCool");
|
||||||
return parsedList;
|
return parsedList;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user