修复瞄准后准星不消失的问题
This commit is contained in:
parent
76341f9cd1
commit
12c3515940
1 changed files with 4 additions and 2 deletions
|
@ -13,7 +13,9 @@ public class CrosshairXianShiYouXiNeiDieJiaCengProcedure {
|
||||||
public static boolean execute(Entity entity) {
|
public static boolean execute(Entity entity) {
|
||||||
if (entity == null)
|
if (entity == null)
|
||||||
return false;
|
return false;
|
||||||
return (entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).is(ItemTags.create(new ResourceLocation("target:gun"))) && entity.getPersistentData().getDouble("miaozhunshijian") < 7
|
return (entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).is(ItemTags.create(new ResourceLocation("target:gun")))
|
||||||
&& !((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == TargetModItems.M_79.get()) && Minecraft.getInstance().options.getCameraType() == CameraType.FIRST_PERSON;
|
&& entity.getPersistentData().getDouble("zoom_time") < 7
|
||||||
|
&& !((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == TargetModItems.M_79.get())
|
||||||
|
&& Minecraft.getInstance().options.getCameraType() == CameraType.FIRST_PERSON;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue