mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-20 20:22:33 +00:00
Added Colored Lights support.
This commit is contained in:
1 parent
8441c497a6
commit
7860775593
10 files changed
+148
-1
No files matched your search
@@ -43,6 +43,8 @@ public class BlockModFlower extends BlockFlower implements ILexiconable {
|
||||
public static IIcon[] icons;
|
||||
public static IIcon[] iconsAlt;
|
||||
|
||||
public int originalLight;
|
||||
|
||||
public static final String ALT_DIR = "alt";
|
||||
|
||||
protected BlockModFlower() {
|
||||
@@ -86,6 +88,12 @@ public class BlockModFlower extends BlockFlower implements ILexiconable {
|
||||
iconsAlt[i] = IconHelper.forBlock(par1IconRegister, this, i, ALT_DIR);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Block setLightLevel(float p_149715_1_) {
|
||||
originalLight = (int) (p_149715_1_ * 15);
|
||||
return super.setLightLevel(p_149715_1_);
|
||||
}
|
||||
|
||||
@Override
|
||||
public IIcon getIcon(int par1, int par2) {
|
||||
|
||||
Reference in new issue
Block a user