Fix iron fence not connecting
This commit is contained in:
parent
e8a77a1d75
commit
fe2b600649
1 changed files with 7 additions and 0 deletions
|
@ -25,14 +25,21 @@
|
|||
package techreborn.blocks.misc;
|
||||
|
||||
import net.fabricmc.fabric.api.block.FabricBlockSettings;
|
||||
import net.minecraft.block.BlockState;
|
||||
import net.minecraft.block.FenceBlock;
|
||||
import net.minecraft.block.Material;
|
||||
import net.minecraft.block.MaterialColor;
|
||||
import net.minecraft.sound.BlockSoundGroup;
|
||||
import net.minecraft.util.math.Direction;
|
||||
|
||||
public class BlockRefinedIronFence extends FenceBlock {
|
||||
|
||||
public BlockRefinedIronFence() {
|
||||
super(FabricBlockSettings.of(Material.METAL, MaterialColor.WOOD).strength(2.0F, 3.0F).sounds(BlockSoundGroup.METAL).build());
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canConnect(BlockState blockState, boolean boolean_1, Direction direction) {
|
||||
return blockState.getBlock() == this;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue