mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-22 13:09:42 +00:00
Allow sparks to have different color networks like corporea. For now, show by coloring the upgrade icon, and displaying the corporea star if there is no upgrade
This commit is contained in:
1 parent
be6d7f610e
commit
d798e44e8c
10 files changed
+136
-105
No files matched your search
@@ -24,7 +24,9 @@ public class RenderSpark extends RenderSparkBase<EntitySpark> {
|
||||
@Override
|
||||
public TextureAtlasSprite getSpinningIcon(EntitySpark entity) {
|
||||
int upgrade = entity.getUpgrade().ordinal() - 1;
|
||||
return upgrade >= 0 && upgrade < MiscellaneousIcons.INSTANCE.sparkUpgradeIcons.length ? MiscellaneousIcons.INSTANCE.sparkUpgradeIcons[upgrade] : null;
|
||||
return upgrade >= 0 && upgrade < MiscellaneousIcons.INSTANCE.sparkUpgradeIcons.length
|
||||
? MiscellaneousIcons.INSTANCE.sparkUpgradeIcons[upgrade]
|
||||
: super.getSpinningIcon(entity);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user