SilentChaos512 / Treasure-Bags

Minecraft mod: Loot bags created with data packs
MIT License
1 stars 5 forks source link

Config option to always spawn loot as Item #4

Closed Partonetrain closed 4 years ago

Partonetrain commented 4 years ago

Couple of lines for the functionality I need. Let me know what you think. Thanks!

SilentChaos512 commented 4 years ago

addItemStackToInventory will actually add the item to the player's inventory, so the config option should be checked first (just flip the or condition). Also, the indentation of part of the config class looks off. Other than that, it looks good.

Partonetrain commented 4 years ago

Makes sense. And I need to make formatting a habit. Tested in dev with config on and off, working as intended