diff --git a/gradle.properties b/gradle.properties index 6ab1fdc..4b24147 100644 --- a/gradle.properties +++ b/gradle.properties @@ -6,7 +6,7 @@ org.gradle.debug=false # Version -mod_version=1.2.04 +mod_version=1.2.05 # Mod mod_id=zenith diff --git a/src/main/java/net/zepalesque/zenith/core/tile/ZenithHangingSignBlockEntity.java b/src/main/java/net/zepalesque/zenith/core/tile/ZenithHangingSignBlockEntity.java index 2151ed2..08022f2 100644 --- a/src/main/java/net/zepalesque/zenith/core/tile/ZenithHangingSignBlockEntity.java +++ b/src/main/java/net/zepalesque/zenith/core/tile/ZenithHangingSignBlockEntity.java @@ -9,25 +9,25 @@ import java.util.function.Supplier; public class ZenithHangingSignBlockEntity extends HangingSignBlockEntity { - protected final AbstractWoodSet woodset; + protected final Supplier> typeSupplier; - protected ZenithHangingSignBlockEntity(BlockPos pos, BlockState state, T woodset) { + protected ZenithHangingSignBlockEntity(BlockPos pos, BlockState state, Supplier> typeSupplier) { super(pos, state); - this.woodset = woodset; + this.typeSupplier = typeSupplier; } // Fix to get around crashing caused by the validateBlockState method - public static ZenithHangingSignBlockEntity create(BlockPos pos, BlockState state, T set) { + public static ZenithHangingSignBlockEntity create(BlockPos pos, BlockState state, Supplier> set) { return new ZenithHangingSignBlockEntity(pos, state, set) { @Override public BlockEntityType getType() { - return this.woodset == null ? set.hangingSignEntity().get() : this.woodset.hangingSignEntity().get(); + return this.typeSupplier == null ? set.get() : this.typeSupplier.get(); } }; } @Override public BlockEntityType getType() { - return this.woodset.hangingSignEntity().get(); + return this.typeSupplier.get(); } }