Skip to content

Commit

Permalink
Update OverlayRenderer.java
Browse files Browse the repository at this point in the history
  • Loading branch information
sakura-ryoko authored Nov 22, 2024
1 parent fa0e49e commit 9fabc06
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,10 @@ private void renderBlockInfoOverlay(RayTraceWrapper traceWrapper, MinecraftClien
World worldClient = WorldUtils.getBestWorld(mc);
BlockPos pos = traceWrapper.getBlockHitResult().getBlockPos();

if (mc.world == null || worldClient == null || worldSchematic == null)
{
return;
}
BlockState stateClient = mc.world.getBlockState(pos);
BlockState stateSchematic = worldSchematic.getBlockState(pos);
boolean hasInvClient = InventoryUtils.getTargetInventory(worldClient, pos) != null;
Expand Down

0 comments on commit 9fabc06

Please sign in to comment.