/*
 * This file is part of TechReborn, licensed under the MIT License (MIT).
 *
 * Copyright (c) 2018 TechReborn
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

package techreborn.blocks.misc;

import net.fabricmc.fabric.api.block.FabricBlockSettings;
import net.minecraft.block.FenceBlock;
import net.minecraft.block.Material;
import net.minecraft.block.MaterialColor;
import net.minecraft.sound.BlockSoundGroup;

public class BlockRefinedIronFence extends FenceBlock {

	public BlockRefinedIronFence() {
		super(FabricBlockSettings.of(Material.METAL, MaterialColor.WOOD).strength(2.0F, 3.0F).sounds(BlockSoundGroup.METAL).build());
	}
}

@@ -1277,16 +1277,55 @@
 ttings;%0A
+import net.minecraft.block.BlockState;%0A
 import n
@@ -1355,16 +1355,16 @@
 eBlock;%0A
-
 import n
@@ -1477,16 +1477,58 @@
 ndGroup;
+%0Aimport net.minecraft.util.math.Direction;
 %0A%0Apublic
@@ -1612,16 +1612,16 @@
 nce() %7B%0A
-
 %09%09super(
@@ -1742,11 +1742,158 @@
 d());%0A%09%7D
+%0A%0A%09@Override%0A%09public boolean canConnect(BlockState blockState, boolean boolean_1, Direction direction) %7B%0A%09%09return blockState.getBlock() == this;%0A%09%7D
 %0A%7D%0A

Fix iron fence not connecting