2022-07-28 03:57:50 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2023-07-01 20:21:13 +00:00
|
|
|
From: Allink <arclicious@vivaldi.net>
|
|
|
|
Date: Mon, 18 Apr 2022 03:56:09 +0100
|
2023-06-17 03:54:59 +00:00
|
|
|
Subject: [PATCH] Reset large tags
|
2022-07-28 03:57:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/world/ContainerHelper.java b/src/main/java/net/minecraft/world/ContainerHelper.java
|
2023-07-01 20:21:13 +00:00
|
|
|
index 4092c7a8c2b0d9d26e6f4d97386735236300d132..04c47cf1a920ae6c356449df801227ee14f6dfb7 100644
|
2022-07-28 03:57:50 +00:00
|
|
|
--- a/src/main/java/net/minecraft/world/ContainerHelper.java
|
|
|
|
+++ b/src/main/java/net/minecraft/world/ContainerHelper.java
|
|
|
|
@@ -2,6 +2,7 @@ package net.minecraft.world;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.function.Predicate;
|
2023-07-01 20:21:13 +00:00
|
|
|
+import me.totalfreedom.scissors.NbtUtility; // Scissors
|
2022-07-28 03:57:50 +00:00
|
|
|
import net.minecraft.core.NonNullList;
|
|
|
|
import net.minecraft.nbt.CompoundTag;
|
|
|
|
import net.minecraft.nbt.ListTag;
|
2023-07-01 20:21:13 +00:00
|
|
|
@@ -22,10 +23,12 @@ public class ContainerHelper {
|
2022-07-28 03:57:50 +00:00
|
|
|
|
|
|
|
public static CompoundTag saveAllItems(CompoundTag nbt, NonNullList<ItemStack> stacks, boolean setIfEmpty) {
|
|
|
|
ListTag listTag = new ListTag();
|
2023-07-01 20:21:13 +00:00
|
|
|
+ long total = 0; // Scissors
|
2022-07-28 03:57:50 +00:00
|
|
|
|
|
|
|
for(int i = 0; i < stacks.size(); ++i) {
|
|
|
|
ItemStack itemStack = stacks.get(i);
|
|
|
|
if (!itemStack.isEmpty()) {
|
|
|
|
+ total += NbtUtility.getTagSize(itemStack.getTag()); // Scissors
|
|
|
|
CompoundTag compoundTag = new CompoundTag();
|
|
|
|
compoundTag.putByte("Slot", (byte)i);
|
|
|
|
itemStack.save(compoundTag);
|
2023-07-01 20:21:13 +00:00
|
|
|
@@ -33,7 +36,7 @@ public class ContainerHelper {
|
2022-07-28 03:57:50 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
- if (!listTag.isEmpty() || setIfEmpty) {
|
|
|
|
+ if ((!listTag.isEmpty() || setIfEmpty) && !(total > NbtUtility.MAXIMUM_SIZE)) { // Scissors
|
|
|
|
nbt.put("Items", listTag);
|
|
|
|
}
|
|
|
|
|
2023-07-01 20:21:13 +00:00
|
|
|
@@ -42,11 +45,19 @@ public class ContainerHelper {
|
2022-07-28 03:57:50 +00:00
|
|
|
|
|
|
|
public static void loadAllItems(CompoundTag nbt, NonNullList<ItemStack> stacks) {
|
|
|
|
ListTag listTag = nbt.getList("Items", 10);
|
2023-07-01 20:21:13 +00:00
|
|
|
+ long total = 0; // Scissors - Account for items inside containers
|
2022-07-28 03:57:50 +00:00
|
|
|
|
|
|
|
for(int i = 0; i < listTag.size(); ++i) {
|
|
|
|
CompoundTag compoundTag = listTag.getCompound(i);
|
|
|
|
int j = compoundTag.getByte("Slot") & 255;
|
|
|
|
if (j >= 0 && j < stacks.size()) {
|
2023-07-01 20:21:13 +00:00
|
|
|
+ // Scissors start
|
2022-07-28 03:57:50 +00:00
|
|
|
+ total += NbtUtility.getTagSize(compoundTag);
|
|
|
|
+ if (total >= NbtUtility.MAXIMUM_SIZE) {
|
|
|
|
+ stacks.clear();
|
|
|
|
+ break;
|
|
|
|
+ }
|
2023-07-01 20:21:13 +00:00
|
|
|
+ // Scissors end
|
2022-07-28 03:57:50 +00:00
|
|
|
stacks.set(j, ItemStack.of(compoundTag));
|
|
|
|
}
|
|
|
|
}
|
2023-06-17 03:54:59 +00:00
|
|
|
diff --git a/src/main/java/net/minecraft/world/item/ItemStack.java b/src/main/java/net/minecraft/world/item/ItemStack.java
|
2023-07-06 21:13:45 +00:00
|
|
|
index ae9b821d71d2868ba4eb3c73558fdcd6caf264e3..744c21ddc67ad3172bbc71e000b092a189dfafb8 100644
|
2023-06-17 03:54:59 +00:00
|
|
|
--- a/src/main/java/net/minecraft/world/item/ItemStack.java
|
|
|
|
+++ b/src/main/java/net/minecraft/world/item/ItemStack.java
|
|
|
|
@@ -21,6 +21,7 @@ import java.util.function.Predicate;
|
|
|
|
import java.util.stream.Collectors;
|
|
|
|
import java.util.stream.Stream;
|
|
|
|
import javax.annotation.Nullable;
|
2023-07-01 20:21:13 +00:00
|
|
|
+import me.totalfreedom.scissors.NbtUtility; // Scissors
|
2023-06-17 03:54:59 +00:00
|
|
|
import net.minecraft.ChatFormatting;
|
|
|
|
import net.minecraft.Util;
|
|
|
|
import net.minecraft.advancements.CriteriaTriggers;
|
|
|
|
@@ -253,6 +254,12 @@ public final class ItemStack {
|
|
|
|
|
|
|
|
// CraftBukkit - break into own method
|
|
|
|
private void load(CompoundTag nbttagcompound) {
|
|
|
|
+ // Scissors start - Reset large tags
|
|
|
|
+ if (NbtUtility.isTooLarge(nbttagcompound)) {
|
|
|
|
+ // Reset tag without destroying item
|
|
|
|
+ nbttagcompound = NbtUtility.Item.removeItemData(nbttagcompound);
|
|
|
|
+ }
|
|
|
|
+ // Scissors end
|
|
|
|
this.item = (Item) BuiltInRegistries.ITEM.get(new ResourceLocation(nbttagcompound.getString("id")));
|
|
|
|
this.count = nbttagcompound.getByte("Count");
|
|
|
|
if (nbttagcompound.contains("tag", 10)) {
|
2023-07-06 21:13:45 +00:00
|
|
|
@@ -551,7 +558,11 @@ public final class ItemStack {
|
2023-06-17 03:54:59 +00:00
|
|
|
nbt.putString("id", minecraftkey == null ? "minecraft:air" : minecraftkey.toString());
|
|
|
|
nbt.putByte("Count", (byte) this.count);
|
|
|
|
if (this.tag != null) {
|
|
|
|
- nbt.put("tag", this.tag.copy());
|
|
|
|
+ // Scissors start - Don't save large tags
|
|
|
|
+ if (!NbtUtility.isTooLarge(this.tag)) {
|
|
|
|
+ nbt.put("tag", this.tag.copy());
|
|
|
|
+ }
|
|
|
|
+ // Scissors end
|
|
|
|
}
|
|
|
|
|
|
|
|
return nbt;
|
2023-07-06 21:13:45 +00:00
|
|
|
@@ -881,6 +892,7 @@ public final class ItemStack {
|
2023-06-17 03:54:59 +00:00
|
|
|
// Paper end
|
|
|
|
|
|
|
|
public void setTag(@Nullable CompoundTag nbt) {
|
2023-07-01 20:21:13 +00:00
|
|
|
+ if (NbtUtility.isTooLarge(nbt)) return; // Scissors - Ignore large tags
|
2023-06-17 03:54:59 +00:00
|
|
|
this.tag = nbt;
|
|
|
|
this.processEnchantOrder(this.tag); // Paper
|
|
|
|
if (this.getItem().canBeDepleted()) {
|
2022-07-28 03:57:50 +00:00
|
|
|
diff --git a/src/main/java/net/minecraft/world/level/block/entity/AbstractFurnaceBlockEntity.java b/src/main/java/net/minecraft/world/level/block/entity/AbstractFurnaceBlockEntity.java
|
2023-07-01 20:21:13 +00:00
|
|
|
index 40e59b8db83aec1143e3c394427e916beea7c01f..f292aa0016e6f741b36ddc1417f6f63d248f987f 100644
|
2022-07-28 03:57:50 +00:00
|
|
|
--- a/src/main/java/net/minecraft/world/level/block/entity/AbstractFurnaceBlockEntity.java
|
|
|
|
+++ b/src/main/java/net/minecraft/world/level/block/entity/AbstractFurnaceBlockEntity.java
|
|
|
|
@@ -9,6 +9,7 @@ import java.util.Iterator;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.Map;
|
|
|
|
import javax.annotation.Nullable;
|
2023-07-01 20:21:13 +00:00
|
|
|
+import me.totalfreedom.scissors.NbtUtility; // Scissors
|
2022-07-28 03:57:50 +00:00
|
|
|
import net.minecraft.SharedConstants;
|
|
|
|
import net.minecraft.Util;
|
|
|
|
import net.minecraft.core.BlockPos;
|
2023-07-01 20:21:13 +00:00
|
|
|
@@ -212,6 +213,17 @@ public abstract class AbstractFurnaceBlockEntity extends BaseContainerBlockEntit
|
2022-07-28 03:57:50 +00:00
|
|
|
public List<HumanEntity> transaction = new java.util.ArrayList<HumanEntity>();
|
|
|
|
|
|
|
|
public List<ItemStack> getContents() {
|
2023-07-01 20:21:13 +00:00
|
|
|
+ // Scissors start - Account for items inside containers
|
2022-07-28 03:57:50 +00:00
|
|
|
+ long total = 0;
|
|
|
|
+
|
|
|
|
+ for (ItemStack item : this.items) {
|
|
|
|
+ total += NbtUtility.getTagSize(item.getOrCreateTag());
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (total > NbtUtility.MAXIMUM_SIZE) {
|
|
|
|
+ this.items.clear();
|
|
|
|
+ }
|
2023-07-01 20:21:13 +00:00
|
|
|
+ // Scissors end
|
2022-07-28 03:57:50 +00:00
|
|
|
return this.items;
|
|
|
|
}
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/world/level/block/entity/BarrelBlockEntity.java b/src/main/java/net/minecraft/world/level/block/entity/BarrelBlockEntity.java
|
2023-07-01 20:21:13 +00:00
|
|
|
index 416aa989ebb18a8741cc9d605a1180ab830f6643..a9a8c9e68e5b767dec2c26495685da88e0caa627 100644
|
2022-07-28 03:57:50 +00:00
|
|
|
--- a/src/main/java/net/minecraft/world/level/block/entity/BarrelBlockEntity.java
|
|
|
|
+++ b/src/main/java/net/minecraft/world/level/block/entity/BarrelBlockEntity.java
|
|
|
|
@@ -1,5 +1,6 @@
|
|
|
|
package net.minecraft.world.level.block.entity;
|
|
|
|
|
2023-07-01 20:21:13 +00:00
|
|
|
+import me.totalfreedom.scissors.NbtUtility; // Scissors
|
2022-07-28 03:57:50 +00:00
|
|
|
import net.minecraft.core.BlockPos;
|
|
|
|
import net.minecraft.core.Direction;
|
|
|
|
import net.minecraft.core.NonNullList;
|
2023-07-01 20:21:13 +00:00
|
|
|
@@ -34,6 +35,17 @@ public class BarrelBlockEntity extends RandomizableContainerBlockEntity {
|
2022-07-28 03:57:50 +00:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public List<ItemStack> getContents() {
|
2023-07-01 20:21:13 +00:00
|
|
|
+ // Scissors start - Account for items inside containers
|
2022-07-28 03:57:50 +00:00
|
|
|
+ long total = 0;
|
|
|
|
+
|
|
|
|
+ for (ItemStack item : this.items) {
|
|
|
|
+ total += NbtUtility.getTagSize(item.getOrCreateTag());
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (total > NbtUtility.MAXIMUM_SIZE) {
|
|
|
|
+ this.items.clear();
|
|
|
|
+ }
|
2023-07-01 20:21:13 +00:00
|
|
|
+ // Scissors end
|
2022-07-28 03:57:50 +00:00
|
|
|
return this.items;
|
|
|
|
}
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/world/level/block/entity/BrewingStandBlockEntity.java b/src/main/java/net/minecraft/world/level/block/entity/BrewingStandBlockEntity.java
|
2023-07-01 20:21:13 +00:00
|
|
|
index c57efcb9a79337ec791e4e8f6671612f0a82b441..2cbb8170953cb555411db8c171a3d1d91eb799bb 100644
|
2022-07-28 03:57:50 +00:00
|
|
|
--- a/src/main/java/net/minecraft/world/level/block/entity/BrewingStandBlockEntity.java
|
|
|
|
+++ b/src/main/java/net/minecraft/world/level/block/entity/BrewingStandBlockEntity.java
|
|
|
|
@@ -3,6 +3,7 @@ package net.minecraft.world.level.block.entity;
|
|
|
|
import java.util.Arrays;
|
|
|
|
import java.util.Iterator;
|
|
|
|
import javax.annotation.Nullable;
|
2023-07-01 20:21:13 +00:00
|
|
|
+import me.totalfreedom.scissors.NbtUtility; // Scissors
|
2022-07-28 03:57:50 +00:00
|
|
|
import net.minecraft.core.BlockPos;
|
|
|
|
import net.minecraft.core.Direction;
|
|
|
|
import net.minecraft.core.NonNullList;
|
2023-07-01 20:21:13 +00:00
|
|
|
@@ -73,6 +74,17 @@ public class BrewingStandBlockEntity extends BaseContainerBlockEntity implements
|
2022-07-28 03:57:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public List<ItemStack> getContents() {
|
2023-07-01 20:21:13 +00:00
|
|
|
+ // Scissors start - Account for items inside containers
|
2022-07-28 03:57:50 +00:00
|
|
|
+ long total = 0;
|
|
|
|
+
|
|
|
|
+ for (ItemStack item : this.items) {
|
|
|
|
+ total += NbtUtility.getTagSize(item.getOrCreateTag());
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (total > NbtUtility.MAXIMUM_SIZE) {
|
|
|
|
+ this.items.clear();
|
|
|
|
+ }
|
2023-07-01 20:21:13 +00:00
|
|
|
+ // Scissors end
|
2022-07-28 03:57:50 +00:00
|
|
|
return this.items;
|
|
|
|
}
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/world/level/block/entity/ChestBlockEntity.java b/src/main/java/net/minecraft/world/level/block/entity/ChestBlockEntity.java
|
2023-07-01 20:21:13 +00:00
|
|
|
index a71414397bd45ee7bcacfeef0041d80dfa25f114..f51abf1722e98d7ce9e616d84472d847e597eafb 100644
|
2022-07-28 03:57:50 +00:00
|
|
|
--- a/src/main/java/net/minecraft/world/level/block/entity/ChestBlockEntity.java
|
|
|
|
+++ b/src/main/java/net/minecraft/world/level/block/entity/ChestBlockEntity.java
|
|
|
|
@@ -1,5 +1,6 @@
|
|
|
|
package net.minecraft.world.level.block.entity;
|
|
|
|
|
2023-07-01 20:21:13 +00:00
|
|
|
+import me.totalfreedom.scissors.NbtUtility; // Scissors
|
2022-07-28 03:57:50 +00:00
|
|
|
import net.minecraft.core.BlockPos;
|
|
|
|
import net.minecraft.core.Direction;
|
|
|
|
import net.minecraft.core.NonNullList;
|
2023-07-01 20:21:13 +00:00
|
|
|
@@ -40,6 +41,17 @@ public class ChestBlockEntity extends RandomizableContainerBlockEntity implement
|
2022-07-28 03:57:50 +00:00
|
|
|
private int maxStack = MAX_STACK;
|
|
|
|
|
|
|
|
public List<ItemStack> getContents() {
|
2023-07-01 20:21:13 +00:00
|
|
|
+ // Scissors start - Account for items inside containers
|
2022-07-28 03:57:50 +00:00
|
|
|
+ long total = 0;
|
|
|
|
+
|
|
|
|
+ for (ItemStack item : this.items) {
|
|
|
|
+ total += NbtUtility.getTagSize(item.getOrCreateTag());
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (total > NbtUtility.MAXIMUM_SIZE) {
|
|
|
|
+ this.items.clear();
|
|
|
|
+ }
|
2023-07-01 20:21:13 +00:00
|
|
|
+ // Scissors end
|
2022-07-28 03:57:50 +00:00
|
|
|
return this.items;
|
|
|
|
}
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/world/level/block/entity/DispenserBlockEntity.java b/src/main/java/net/minecraft/world/level/block/entity/DispenserBlockEntity.java
|
2023-07-01 20:21:13 +00:00
|
|
|
index 881379681c39230a00b3a1f11cd87498984396c7..d0513b72cdaec3b67b9341d251367b193bafa40c 100644
|
2022-07-28 03:57:50 +00:00
|
|
|
--- a/src/main/java/net/minecraft/world/level/block/entity/DispenserBlockEntity.java
|
|
|
|
+++ b/src/main/java/net/minecraft/world/level/block/entity/DispenserBlockEntity.java
|
|
|
|
@@ -1,5 +1,6 @@
|
|
|
|
package net.minecraft.world.level.block.entity;
|
|
|
|
|
2023-07-01 20:21:13 +00:00
|
|
|
+import me.totalfreedom.scissors.NbtUtility; // Scissors
|
2022-07-28 03:57:50 +00:00
|
|
|
import net.minecraft.core.BlockPos;
|
|
|
|
import net.minecraft.core.NonNullList;
|
|
|
|
import net.minecraft.nbt.CompoundTag;
|
2023-07-01 20:21:13 +00:00
|
|
|
@@ -28,6 +29,17 @@ public class DispenserBlockEntity extends RandomizableContainerBlockEntity {
|
2022-07-28 03:57:50 +00:00
|
|
|
private int maxStack = MAX_STACK;
|
|
|
|
|
|
|
|
public List<ItemStack> getContents() {
|
2023-07-01 20:21:13 +00:00
|
|
|
+ // Scissors start - Account for items inside containers
|
2022-07-28 03:57:50 +00:00
|
|
|
+ long total = 0;
|
|
|
|
+
|
|
|
|
+ for (ItemStack item : this.items) {
|
|
|
|
+ total += NbtUtility.getTagSize(item.getOrCreateTag());
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (total > NbtUtility.MAXIMUM_SIZE) {
|
|
|
|
+ this.items.clear();
|
|
|
|
+ }
|
2023-07-01 20:21:13 +00:00
|
|
|
+ // Scissors end
|
2022-07-28 03:57:50 +00:00
|
|
|
return this.items;
|
|
|
|
}
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/world/level/block/entity/HopperBlockEntity.java b/src/main/java/net/minecraft/world/level/block/entity/HopperBlockEntity.java
|
2023-07-01 20:21:13 +00:00
|
|
|
index a8a26a0a37a08b6bbeb5a1fde417d6f448d3c79f..45e92e5cb10300de9072997cca06968e2c059083 100644
|
2022-07-28 03:57:50 +00:00
|
|
|
--- a/src/main/java/net/minecraft/world/level/block/entity/HopperBlockEntity.java
|
|
|
|
+++ b/src/main/java/net/minecraft/world/level/block/entity/HopperBlockEntity.java
|
2023-02-24 07:22:27 +00:00
|
|
|
@@ -6,6 +6,7 @@ import java.util.function.BooleanSupplier;
|
|
|
|
import java.util.stream.Collectors;
|
2022-07-28 03:57:50 +00:00
|
|
|
import java.util.stream.IntStream;
|
|
|
|
import javax.annotation.Nullable;
|
2023-07-01 20:21:13 +00:00
|
|
|
+import me.totalfreedom.scissors.NbtUtility; // Scissors
|
2022-07-28 03:57:50 +00:00
|
|
|
import net.minecraft.core.BlockPos;
|
|
|
|
import net.minecraft.core.Direction;
|
|
|
|
import net.minecraft.core.NonNullList;
|
2023-07-01 20:21:13 +00:00
|
|
|
@@ -56,6 +57,17 @@ public class HopperBlockEntity extends RandomizableContainerBlockEntity implemen
|
2022-07-28 03:57:50 +00:00
|
|
|
private int maxStack = MAX_STACK;
|
|
|
|
|
|
|
|
public List<ItemStack> getContents() {
|
2023-07-01 20:21:13 +00:00
|
|
|
+ // Scissors start - Account for items inside containers
|
2022-07-28 03:57:50 +00:00
|
|
|
+ long total = 0;
|
|
|
|
+
|
|
|
|
+ for (ItemStack item : this.items) {
|
|
|
|
+ total += NbtUtility.getTagSize(item.getOrCreateTag());
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (total > NbtUtility.MAXIMUM_SIZE) {
|
|
|
|
+ this.items.clear();
|
|
|
|
+ }
|
2023-07-01 20:21:13 +00:00
|
|
|
+ // Scissors end
|
2022-07-28 03:57:50 +00:00
|
|
|
return this.items;
|
|
|
|
}
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/world/level/block/entity/ShulkerBoxBlockEntity.java b/src/main/java/net/minecraft/world/level/block/entity/ShulkerBoxBlockEntity.java
|
2023-07-01 20:21:13 +00:00
|
|
|
index b7686fd63b7c5d88c3a12ec4ee9bc01a17f997e0..db3a4a8cd19da9775bb0884c33494f1e8591b1fa 100644
|
2022-07-28 03:57:50 +00:00
|
|
|
--- a/src/main/java/net/minecraft/world/level/block/entity/ShulkerBoxBlockEntity.java
|
|
|
|
+++ b/src/main/java/net/minecraft/world/level/block/entity/ShulkerBoxBlockEntity.java
|
|
|
|
@@ -3,6 +3,7 @@ package net.minecraft.world.level.block.entity;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.stream.IntStream;
|
|
|
|
import javax.annotation.Nullable;
|
2023-07-01 20:21:13 +00:00
|
|
|
+import me.totalfreedom.scissors.NbtUtility; // Scissors
|
2022-07-28 03:57:50 +00:00
|
|
|
import net.minecraft.core.BlockPos;
|
|
|
|
import net.minecraft.core.Direction;
|
|
|
|
import net.minecraft.core.NonNullList;
|
2023-07-01 20:21:13 +00:00
|
|
|
@@ -60,6 +61,17 @@ public class ShulkerBoxBlockEntity extends RandomizableContainerBlockEntity impl
|
2022-07-28 03:57:50 +00:00
|
|
|
public boolean opened;
|
|
|
|
|
|
|
|
public List<ItemStack> getContents() {
|
2023-07-01 20:21:13 +00:00
|
|
|
+ // Scissors start - Account for items inside containers
|
2022-07-28 03:57:50 +00:00
|
|
|
+ long total = 0;
|
|
|
|
+
|
|
|
|
+ for (ItemStack item : this.itemStacks) {
|
|
|
|
+ total += NbtUtility.getTagSize(item.getOrCreateTag());
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (total > NbtUtility.MAXIMUM_SIZE) {
|
|
|
|
+ this.itemStacks.clear();
|
|
|
|
+ }
|
2023-07-01 20:21:13 +00:00
|
|
|
+ // Scissors end
|
2022-07-28 03:57:50 +00:00
|
|
|
return this.itemStacks;
|
|
|
|
}
|
|
|
|
|