修复命中提示不显示问题
This commit is contained in:
parent
44594f9336
commit
5e20e54367
1 changed files with 1 additions and 1 deletions
|
@ -337,7 +337,7 @@ public class PlayerEventHandler {
|
|||
|
||||
player.getCapability(TargetModVariables.PLAYER_VARIABLES_CAPABILITY, null).ifPresent(capability -> {
|
||||
var headIndicator = player.getCapability(TargetModVariables.PLAYER_VARIABLES_CAPABILITY, null).map(c -> c.headIndicator).orElse(0d);
|
||||
var hitIndicator = player.getCapability(TargetModVariables.PLAYER_VARIABLES_CAPABILITY, null).map(c -> c.headIndicator).orElse(0d);
|
||||
var hitIndicator = player.getCapability(TargetModVariables.PLAYER_VARIABLES_CAPABILITY, null).map(c -> c.hitIndicator).orElse(0d);
|
||||
var killIndicator = player.getCapability(TargetModVariables.PLAYER_VARIABLES_CAPABILITY, null).map(c -> c.killIndicator).orElse(0d);
|
||||
|
||||
capability.headIndicator = Math.max(0, headIndicator - 1);
|
||||
|
|
Loading…
Add table
Reference in a new issue