Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
It turns out this was a planned feature that never got finished. Replaced vestigial code with functioning feature to allow specifying custom item icons per lootbag.
More work required
This is all of the required code changes for this feature, but it won't change anything in the pack. New icons need to be added in https://github.com/GTNewHorizons/NewHorizonsCoreMod and those need to be referenced in https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/blob/master/config/EnhancedLootBags/LootBags.xml.
Sample usage
Add the desired lootbag icon to some other mod (like the GTNH core mod) under
%MODID%/textures/items/
.Reference the icon by combined mod Id and item texture name using the
LootbagIcon
property ofLootGroup
tags inLootBags.xml
.Proof of concept test icons (Not included)