修复不能退出改装状态的问题

This commit is contained in:
17146 2025-04-22 01:06:31 +08:00 committed by Light_Quanta
parent 47ea1b967a
commit 17ca208db6
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959

View file

@ -225,9 +225,13 @@ public class ClickHandler {
} }
if (key == ModKeyMappings.EDIT_MODE.getKey().getValue() && ClientEventHandler.burstFireAmount == 0) { if (key == ModKeyMappings.EDIT_MODE.getKey().getValue() && ClientEventHandler.burstFireAmount == 0) {
ClientEventHandler.holdFire = false; ClientEventHandler.holdFire = false;
isEditing = true;
if (!isEditing) {
player.playSound(ModSounds.EDIT_MODE.get(), 1, 1); player.playSound(ModSounds.EDIT_MODE.get(), 1, 1);
} }
// TODO 退出时的动画渐变
isEditing = !isEditing;
}
if (key == ModKeyMappings.BREATH.getKey().getValue() && !exhaustion && zoom) { if (key == ModKeyMappings.BREATH.getKey().getValue() && !exhaustion && zoom) {
breath = true; breath = true;