Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-25 18:40:05 +01:00
Calculate size at the start, not every time
Dieser Commit ist enthalten in:
Ursprung
82a352fcc2
Commit
90e0352a67
@ -178,7 +178,8 @@ final class NBTConverter {
|
|||||||
other = (NBTTagList) other.copy();
|
other = (NBTTagList) other.copy();
|
||||||
List<Tag> list = new ArrayList<Tag>();
|
List<Tag> list = new ArrayList<Tag>();
|
||||||
Class<? extends Tag> listClass = StringTag.class;
|
Class<? extends Tag> listClass = StringTag.class;
|
||||||
for (int i = 0; i < other.tagCount(); i++) {
|
int tags = other.tagCount();
|
||||||
|
for (int i = 0; i < tags; i++) {
|
||||||
Tag child = fromNative(other.removeTag(0));
|
Tag child = fromNative(other.removeTag(0));
|
||||||
list.add(child);
|
list.add(child);
|
||||||
listClass = child.getClass();
|
listClass = child.getClass();
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren