diff --git a/gradle.properties b/gradle.properties index abd1a816288..dfdba918859 100644 --- a/gradle.properties +++ b/gradle.properties @@ -11,7 +11,7 @@ mappings_version=2023.09.03-1.20.1 mappings_channel=parchment loader_version_range=[47,) forge_version=47.1.76 -mod_version=10.4.7 +mod_version=10.4.8 #This determines the minimum version of forge required to use Mekanism # Only bump it whenever we need access to a feature in forge that is not available in earlier versions forge_version_range=[47.1.1,) diff --git a/src/main/java/mekanism/common/registration/impl/TileEntityTypeDeferredRegister.java b/src/main/java/mekanism/common/registration/impl/TileEntityTypeDeferredRegister.java index e6573322dcb..8d88a3aad00 100644 --- a/src/main/java/mekanism/common/registration/impl/TileEntityTypeDeferredRegister.java +++ b/src/main/java/mekanism/common/registration/impl/TileEntityTypeDeferredRegister.java @@ -19,6 +19,15 @@ public TileEntityTypeRegistryObject register return this.builder(block, factory).clientTicker(clientTicker).serverTicker(serverTicker).build(); } + @Deprecated + public TileEntityTypeRegistryObject register(BlockRegistryObject block, BlockEntitySupplier factory) { + return this_is_not_a_mekanism_tile(block, factory); + } + + private TileEntityTypeRegistryObject this_is_not_a_mekanism_tile(BlockRegistryObject block, BlockEntitySupplier factory) { + return register(block, factory, TileEntityMekanism::tickServer, TileEntityMekanism::tickClient); + } + public BlockEntityTypeBuilder builder(BlockRegistryObject block, BlockEntitySupplier factory) { return new BlockEntityTypeBuilder<>(block, factory); }