Skip to content

Commit

Permalink
Add comment explaining the special case for light blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander01998 committed Nov 12, 2023
1 parent 81650c8 commit 959a2f4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/net/wurstclient/mixin/ClientWorldMixin.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ private void getBlockParticle(CallbackInfoReturnable<Block> cir)
{
if(!WurstClient.INSTANCE.getHax().barrierEspHack.isEnabled())
return;


// Pause BarrierESP when holding a light in Creative Mode, since it
// would otherwise prevent the player from seeing light blocks.
if(client.interactionManager.getCurrentGameMode() == GameMode.CREATIVE
&& client.player.getMainHandStack().getItem() == Items.LIGHT)
return;
Expand Down

0 comments on commit 959a2f4

Please sign in to comment.