mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 18:29:05 +00:00
Fix Default Icon Logic in DBC Addon to work with Layering System of CNPC+
This commit is contained in:
1 parent
8056640102
commit
f71694e210
2 files changed
+21
-6
No files matched your search
@@ -107,8 +107,9 @@ public class AbilityIcon extends Gui {
|
||||
} else if (hasDefaultLayers()) {
|
||||
// Path 2: Default layers — draw each layer with its dynamic color
|
||||
for (Ability.DefaultIconLayer defLayer : defaultLayers) {
|
||||
if (defLayer.texture == null || defLayer.texture.isEmpty()) continue;
|
||||
ImageData imageData = ClientCacheHandler.getImageData(defLayer.texture);
|
||||
String texPath = defLayer.getTextureForState(state);
|
||||
if (texPath == null || texPath.isEmpty()) continue;
|
||||
ImageData imageData = ClientCacheHandler.getImageData(texPath);
|
||||
if (imageData != null && imageData.imageLoaded()) {
|
||||
int color = defLayer.getColor();
|
||||
float r = ((color >> 16) & 0xFF) / 255f;
|
||||
|
||||
Reference in new issue
Block a user