智慧芯片潜行时清除目标

This commit is contained in:
Atsuihsio 2025-03-08 21:43:24 +08:00
parent d8484ba7b1
commit c679153f46

View file

@ -1363,11 +1363,11 @@ public class ClientEventHandler {
fov = event.getFOV(); fov = event.getFOV();
// 智慧芯片 // 智慧芯片
if (!player.isShiftKeyDown() if (zoom
&& zoom
&& !notInGame() && !notInGame()
&& drawTime < 0.01 && drawTime < 0.01
&& !player.getCapability(ModVariables.PLAYER_VARIABLES_CAPABILITY, null).map(c -> c.edit).orElse(false)) { && !player.getCapability(ModVariables.PLAYER_VARIABLES_CAPABILITY, null).map(c -> c.edit).orElse(false)) {
if (!player.isShiftKeyDown()) {
int intelligentChipLevel = PerkHelper.getItemPerkLevel(ModPerks.INTELLIGENT_CHIP.get(), stack); int intelligentChipLevel = PerkHelper.getItemPerkLevel(ModPerks.INTELLIGENT_CHIP.get(), stack);
if (intelligentChipLevel > 0) { if (intelligentChipLevel > 0) {
@ -1379,6 +1379,10 @@ public class ClientEventHandler {
look(player, toVec); look(player, toVec);
} }
} }
} else {
entity = null;
}
} }
return; return;
} }