移除战术冲刺第三人称动画
This commit is contained in:
parent
d165483b1a
commit
2cc7362d22
2 changed files with 8 additions and 13 deletions
|
@ -46,6 +46,13 @@ public class PlayerEventHandler {
|
|||
return;
|
||||
}
|
||||
|
||||
player.getCapability(ModVariables.PLAYER_VARIABLES_CAPABILITY, null).ifPresent(capability -> {
|
||||
capability.zoom = false;
|
||||
capability.tacticalSprintExhaustion = false;
|
||||
capability.tacticalSprintTime = 600;
|
||||
capability.syncPlayerVariables(player);
|
||||
});
|
||||
|
||||
if (!ModVariables.MapVariables.get(player.level()).pvpMode) {
|
||||
return;
|
||||
}
|
||||
|
@ -55,13 +62,6 @@ public class PlayerEventHandler {
|
|||
stack.getOrCreateTag().putInt("ammo", stack.getOrCreateTag().getInt("mag"));
|
||||
}
|
||||
}
|
||||
|
||||
player.getCapability(ModVariables.PLAYER_VARIABLES_CAPABILITY, null).ifPresent(capability -> {
|
||||
capability.zoom = false;
|
||||
capability.tacticalSprintExhaustion = false;
|
||||
capability.tacticalSprintTime = 600;
|
||||
capability.syncPlayerVariables(player);
|
||||
});
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
|
|
|
@ -2,7 +2,6 @@ package net.mcreator.superbwarfare.tools;
|
|||
|
||||
import net.minecraft.client.model.HumanoidModel;
|
||||
import net.minecraft.world.InteractionHand;
|
||||
import net.minecraft.world.effect.MobEffects;
|
||||
import net.minecraft.world.entity.LivingEntity;
|
||||
import net.minecraft.world.item.ItemStack;
|
||||
import net.minecraftforge.api.distmarker.Dist;
|
||||
|
@ -18,11 +17,7 @@ public class PoseTool {
|
|||
|| stack.getOrCreateTag().getBoolean("sentinel_is_charging")) {
|
||||
return HumanoidModel.ArmPose.CROSSBOW_CHARGE;
|
||||
} else if (entityLiving.isSprinting() && entityLiving.onGround() && entityLiving.getPersistentData().getDouble("noRun") == 0) {
|
||||
if (entityLiving.hasEffect(MobEffects.MOVEMENT_SPEED)) {
|
||||
return HumanoidModel.ArmPose.THROW_SPEAR;
|
||||
} else {
|
||||
return HumanoidModel.ArmPose.CROSSBOW_CHARGE;
|
||||
}
|
||||
return HumanoidModel.ArmPose.CROSSBOW_CHARGE;
|
||||
} else {
|
||||
return HumanoidModel.ArmPose.BOW_AND_ARROW;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue