智慧芯片潜行时清除目标
This commit is contained in:
parent
d8484ba7b1
commit
c679153f46
1 changed files with 14 additions and 10 deletions
|
@ -1363,22 +1363,26 @@ 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)) {
|
||||||
int intelligentChipLevel = PerkHelper.getItemPerkLevel(ModPerks.INTELLIGENT_CHIP.get(), stack);
|
if (!player.isShiftKeyDown()) {
|
||||||
|
int intelligentChipLevel = PerkHelper.getItemPerkLevel(ModPerks.INTELLIGENT_CHIP.get(), stack);
|
||||||
|
|
||||||
if (intelligentChipLevel > 0) {
|
if (intelligentChipLevel > 0) {
|
||||||
if (ClientEventHandler.entity == null || !entity.isAlive()) {
|
if (ClientEventHandler.entity == null || !entity.isAlive()) {
|
||||||
ClientEventHandler.entity = SeekTool.seekLivingEntity(player, player.level(), 32 + 8 * (intelligentChipLevel - 1), 16 / zoomFov);
|
ClientEventHandler.entity = SeekTool.seekLivingEntity(player, player.level(), 32 + 8 * (intelligentChipLevel - 1), 16 / zoomFov);
|
||||||
}
|
}
|
||||||
if (entity != null && entity.isAlive()) {
|
if (entity != null && entity.isAlive()) {
|
||||||
Vec3 toVec = getVec3(event, player);
|
Vec3 toVec = getVec3(event, player);
|
||||||
look(player, toVec);
|
look(player, toVec);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
entity = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue