Fix: Dark Pressure Plate item now works as intended

This commit is contained in:
HenryLoenwind committed 2015-03-18 01:23:01 +01:00
1 parent 6cccf5f734
commit 58e7c65b86
2 files changed
+18 -1

No files matched your search

@@ -50,7 +50,7 @@ public class BlockDarkSteelPressurePlate extends BlockPressurePlate implements I
}
protected void init() {
GameRegistry.registerBlock(this, ModObject.blockDarkSteelPressurePlate.unlocalisedName);
GameRegistry.registerBlock(this, BlockItemDarkSteelPressurePlate.class, ModObject.blockDarkSteelPressurePlate.unlocalisedName);
GameRegistry.registerTileEntity(TileEntityDarkSteelPressurePlate.class, ModObject.blockDarkSteelPressurePlate.unlocalisedName + "TileEntity");
MachineRecipeRegistry.instance.registerRecipe(ModObject.blockPainter.unlocalisedName, new PainterTemplate(this));
}
@@ -0,0 +1,17 @@
package crazypants.enderio.block;
import net.minecraft.block.Block;
import net.minecraft.item.ItemBlockWithMetadata;
public class BlockItemDarkSteelPressurePlate extends ItemBlockWithMetadata {
public BlockItemDarkSteelPressurePlate(Block block) {
super(block, block);
}
@Override
public int getMetadata(int p_77647_1_) {
return 0;
}
}