9
0
mirror of https://github.com/Xiao-MoMi/Custom-Fishing.git synced 2025-12-29 03:49:07 +00:00

1.3-beta-3

This commit is contained in:
Xiao-MoMi
2023-03-05 17:29:44 +08:00
parent 7f67a6ae54
commit cf6a2d246a
16 changed files with 301 additions and 133 deletions

View File

@@ -93,6 +93,9 @@ public class ItemStackUtil {
NBTListCompound texture = nbtCompound.addCompound("Properties").getCompoundList("textures").addCompound();
texture.setString("Value", item.getHead64());
}
if (item.getTotem() != null) {
nbtItem.setString("Totem", item.getTotem());
}
if (item.getNbt() != null) NBTUtil.setTags(item.getNbt(), nbtItem);
return nbtItem.getItem();
}