mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-18 11:29:30 +00:00
Fix: Dark Pressure Plate item now works as intended
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user