Skip to content

Commit

Permalink
Fix NPE with tile entity optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
Wyvest committed Aug 21, 2024
1 parent f814781 commit f09e8e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ mod_id=patcher
# betas will be "1.x.x+beta-y" / "1.x.x+branch_beta-y"
# rcs will be 1.x.x+rc-y
# extra branches will be 1.x.x+branch-y
mod_version=1.10.1
mod_version=1.10.2
# Sets the name of the jar file that you put in your 'mods' folder.
mod_archives_name=PolyPatcher

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class RenderChunkMixin_OptimizeSpecialTileEntities {
*/
@Redirect(method = "rebuildChunk", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/renderer/chunk/CompiledChunk;addTileEntity(Lnet/minecraft/tileentity/TileEntity;)V"))
private void patcher$renderSpecialTileEntitiesOnce(CompiledChunk instance, TileEntity tileEntityIn) {
if (!patcher$tileEntitySpecialRenderer.forceTileEntityRender()) instance.addTileEntity(tileEntityIn);
if (patcher$tileEntitySpecialRenderer != null && !patcher$tileEntitySpecialRenderer.forceTileEntityRender()) instance.addTileEntity(tileEntityIn);
}
//#endif
}
Expand Down

0 comments on commit f09e8e7

Please sign in to comment.