From 7ea9fa14161a73f2c159154d66acbf05ec67797b Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Tue, 27 Nov 2018 21:38:42 +0100 Subject: [PATCH] add hardness to the lamp, closes #15 --- .../java/de/ellpeck/naturesaura/blocks/BlockSpawnLamp.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/de/ellpeck/naturesaura/blocks/BlockSpawnLamp.java b/src/main/java/de/ellpeck/naturesaura/blocks/BlockSpawnLamp.java index 2ede5513..eabeb937 100644 --- a/src/main/java/de/ellpeck/naturesaura/blocks/BlockSpawnLamp.java +++ b/src/main/java/de/ellpeck/naturesaura/blocks/BlockSpawnLamp.java @@ -5,6 +5,7 @@ import de.ellpeck.naturesaura.api.aura.chunk.IAuraChunk; import de.ellpeck.naturesaura.blocks.tiles.TileEntitySpawnLamp; import de.ellpeck.naturesaura.packet.PacketHandler; import de.ellpeck.naturesaura.packet.PacketParticles; +import net.minecraft.block.SoundType; import net.minecraft.block.material.Material; import net.minecraft.block.state.BlockFaceShape; import net.minecraft.block.state.IBlockState; @@ -30,6 +31,8 @@ public class BlockSpawnLamp extends BlockContainerImpl { super(Material.IRON, "spawn_lamp", TileEntitySpawnLamp.class, "spawn_lamp"); MinecraftForge.EVENT_BUS.register(this); this.setLightLevel(1F); + this.setSoundType(SoundType.METAL); + this.setHardness(3F); } @SubscribeEvent