mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-14 01:04:16 +00:00
Use a custom flower16.png texture for special flower breaking particles.
This commit is contained in:
1 parent
1c0a19e4e5
commit
d936d1878c
3 files changed
+4
-3
No files matched your search
@@ -39,7 +39,7 @@ import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
public class BlockModFlower extends BlockFlower implements ILexiconable {
|
||||
|
||||
Icon[] icons;
|
||||
public static Icon[] icons;
|
||||
|
||||
protected BlockModFlower() {
|
||||
super(LibBlockIDs.idFlower);
|
||||
@@ -69,7 +69,7 @@ public class BlockModFlower extends BlockFlower implements ILexiconable {
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerIcons(IconRegister par1IconRegister) {
|
||||
icons = new Icon[16];
|
||||
icons = new Icon[17];
|
||||
for(int i = 0; i < icons.length; i++)
|
||||
icons[i] = IconHelper.forBlock(par1IconRegister, this, i);
|
||||
}
|
||||
|
||||
@@ -29,6 +29,7 @@ import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.Icon;
|
||||
import net.minecraft.util.MovingObjectPosition;
|
||||
import net.minecraft.world.ColorizerFoliage;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.world.World;
|
||||
import vazkii.botania.api.ILexiconable;
|
||||
@@ -116,7 +117,7 @@ public class BlockSpecialFlower extends BlockFlower implements ITileEntityProvid
|
||||
|
||||
@Override
|
||||
public Icon getIcon(int par1, int par2) {
|
||||
return Block.plantYellow.getIcon(0, 0);
|
||||
return BlockModFlower.icons[16];
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 2.8 KiB |
Reference in new issue
Block a user