Skip to content

Commit

Permalink
fix hover item stringify for Paper(?) bug with hover item handling
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Aug 28, 2022
1 parent 58cc6e1 commit da68bcf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ else if (contentObject instanceof Item) {
try {
net.minecraft.nbt.CompoundTag tag = new net.minecraft.nbt.CompoundTag();
tag.putString("id", item.getId());
tag.putByte("Count", (byte) item.getCount());
tag.putByte("Count", item.getCount() == -1 ? 1 : (byte) item.getCount());
if (item.getTag() != null && item.getTag().getNbt() != null) {
tag.put("tag", TagParser.parseTag(item.getTag().getNbt()));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ else if (contentObject instanceof Item) {
try {
net.minecraft.nbt.CompoundTag tag = new net.minecraft.nbt.CompoundTag();
tag.putString("id", item.getId());
tag.putByte("Count", (byte) item.getCount());
tag.putByte("Count", item.getCount() == -1 ? 1 : (byte) item.getCount());
if (item.getTag() != null && item.getTag().getNbt() != null) {
tag.put("tag", TagParser.parseTag(item.getTag().getNbt()));
}
Expand Down

0 comments on commit da68bcf

Please sign in to comment.