Skip to content

Commit

Permalink
Make @overwrite methods public (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aeltumn committed Sep 30, 2023
1 parent f877ee3 commit 6141ccd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class SodiumWorldRendererMixin {
* @reason Replace normal logic to render all block entities at once instead.
*/
@Overwrite
private void renderGlobalBlockEntities(PoseStack matrices, RenderBuffers bufferBuilders, Long2ObjectMap<SortedSet<BlockDestructionProgress>> blockBreakingProgressions, float tickDelta, MultiBufferSource.BufferSource immediate, double x, double y, double z, BlockEntityRenderDispatcher blockEntityRenderer) {
public void renderGlobalBlockEntities(PoseStack matrices, RenderBuffers bufferBuilders, Long2ObjectMap<SortedSet<BlockDestructionProgress>> blockBreakingProgressions, float tickDelta, MultiBufferSource.BufferSource immediate, double x, double y, double z, BlockEntityRenderDispatcher blockEntityRenderer) {
// Remove the normal method. We add a custom call because we need the camera instance.
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class ItemOverridesMixin {
* @reason Vanilla overrides are incredibly slow, best to replace the whole system here
*/
@Overwrite
private ItemOverrides getItemOverrides(ModelBaker baker, BlockModel model) {
public ItemOverrides getItemOverrides(ModelBaker baker, BlockModel model) {
// Re-use the same empty instance whenever possible
return this.overrides.isEmpty() ? CustomItemOverrides.EMPTY : new CustomItemOverrides(baker, model, this.overrides);
}
Expand Down

0 comments on commit 6141ccd

Please sign in to comment.