Iron Chests

Iron Chests

173M Downloads

Iron Chests unintentionally adds non-chest textures from other mods to the chest atlas

XFactHD opened this issue ยท 0 comments

commented

Version Information

Minecraft: 1.21.1
NeoForge: 21.1.54
Iron Chests: 16.0.7

Report Information

Iron Chests uses a DirectoryLister sprite source to add its chest textures to the chest atlas. The default DirectorySource is not namespaced, which means that any texture in the specified directory or subdirectory thereof gets added, regardless of the texture's namespace. Since the textures/models/ directory is often used for large texture maps used by "entity" models which are rendered by entity renderers or BERs and which are not intended to be stitched to an atlas, this causes the chest atlas to be bloated by these unnecessary textures. In 1.21.1 this can be fixed by using the NamespacedDirectoryLister provided by NeoForge since 21.1.29 instead. In earlier versions, this custom sprite source needs to either be implemented manually or the individual textures added by a SingleFile sprite source per texture.

Steps to Reproduce

  1. Install Iron Chests together with a mod that adds its own textures in textures/models/ (i.e. Modular Force Field Systems)
  2. Inspect the chest atlas with vanilla's atlas dump keybind (F3 + S) or AtlasViewer (the latter includes information about which resource pack contains the sprite source adding a given texture)