Made painted glow stone re-paintable.

This commit is contained in:
CrazyPants committed 2014-07-26 12:05:29 +08:00
1 parent 939fecac69
commit 58aaad320d
2 files changed
+6 -11

No files matched your search

@@ -57,7 +57,7 @@ public class BlockPaintedGlowstone extends Block implements ITileEntityProvider
private void init() {
GameRegistry.registerBlock(this, BlockItemPaintedGlowstone.class, ModObject.blockPaintedGlowstone.unlocalisedName);
GameRegistry.registerTileEntity(TileEntityPaintedBlock.class, ModObject.blockPaintedGlowstone.unlocalisedName + "TileEntity");
MachineRecipeRegistry.instance.registerRecipe(ModObject.blockPainter.unlocalisedName, new PainterTemplate());
MachineRecipeRegistry.instance.registerRecipe(ModObject.blockPainter.unlocalisedName, new PainterTemplate(this));
}
public static ItemStack createItemStackForSourceBlock(Block block, int damage) {
@@ -238,8 +238,8 @@ public class BlockPaintedGlowstone extends Block implements ITileEntityProvider
public static final class PainterTemplate extends BasicPainterTemplate {
public PainterTemplate() {
super(Blocks.glowstone);
public PainterTemplate(Block paintedGlowstone) {
super(Blocks.glowstone, paintedGlowstone);
}
@Override