Skip to content

Commit

Permalink
binary compatibility fix for other mods using internal classes
Browse files Browse the repository at this point in the history
  • Loading branch information
thiakil committed Jun 3, 2024
1 parent 496b32f commit b73f09d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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,)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ public <BE extends TileEntityMekanism> TileEntityTypeRegistryObject<BE> register
return this.<BE>builder(block, factory).clientTicker(clientTicker).serverTicker(serverTicker).build();
}

@Deprecated
public <BE extends TileEntityMekanism> TileEntityTypeRegistryObject<BE> register(BlockRegistryObject<?, ?> block, BlockEntitySupplier<? extends BE> factory) {
return this_is_not_a_mekanism_tile(block, factory);
}

private <BE extends TileEntityMekanism> TileEntityTypeRegistryObject<BE> this_is_not_a_mekanism_tile(BlockRegistryObject<?, ?> block, BlockEntitySupplier<? extends BE> factory) {
return register(block, factory, TileEntityMekanism::tickServer, TileEntityMekanism::tickClient);
}

public <BE extends BlockEntity> BlockEntityTypeBuilder<BE> builder(BlockRegistryObject<?, ?> block, BlockEntitySupplier<? extends BE> factory) {
return new BlockEntityTypeBuilder<>(block, factory);
}
Expand Down

0 comments on commit b73f09d

Please sign in to comment.