Skip to content

Commit

Permalink
Merge pull request #726 from FTBTeam/1.20.1/dev
Browse files Browse the repository at this point in the history
1.20.1/dev
  • Loading branch information
desht committed May 22, 2024
2 parents 9808527 + 614208f commit cd9bbea
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2001.4.4]

### Fixed
* Fixed issue where larger itemstack sizes when creating item tasks led to a "missing" (empty) item in the task

## [2001.4.3]

### Fixed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ public static CompoundTag writeItem(ItemStack stack) {
SNBTCompoundTag tag = new SNBTCompoundTag();
stack.save(tag);

// kludge: vanilla saves the stack size as a byte, which means negative sizes for big stacks,
// leading to the stack turning into an empty (air) stack
// https://github.com/FTBTeam/FTB-Mods-Issues/issues/1182
tag.putInt("Count", stack.getCount());

if (tag.size() == 2) {
tag.singleLine();
}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ mod_id=ftbquests
archives_base_name=ftb-quests
minecraft_version=1.20.1
# Build time
mod_version=2001.4.3
mod_version=2001.4.4
maven_group=dev.ftb.mods
mod_author=FTB Team
# Curse release
Expand Down

0 comments on commit cd9bbea

Please sign in to comment.