Skip to content

Commit

Permalink
fix: fix detect size
Browse files Browse the repository at this point in the history
  • Loading branch information
StarWishsama committed Jan 13, 2025
1 parent 286433e commit 5fcccb8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static String itemStack2String(ItemStack itemStack) {
var itemStr = Base64Coder.encodeLines(stream.toByteArray());

if (Slimefun.getDatabaseManager().getBlockDataStorageType() != StorageType.SQLITE
&& itemStr.length() > 32767) {
&& itemStr.length() > 65535) {
throw new IllegalArgumentException("检测到过大物品, 请联系物品对应插件开发者解决: " + StringUtil.itemStackToString(itemStack)
+ ", size = " + itemStr.length());
}
Expand Down

0 comments on commit 5fcccb8

Please sign in to comment.