修复音效问题#2

This commit is contained in:
17146 2025-04-23 01:59:28 +08:00 committed by Light_Quanta
parent b252f29a21
commit 6285838dd7
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959
2 changed files with 3 additions and 2 deletions

View file

@ -16,7 +16,7 @@ mod_id=superbwarfare
mod_name=Superb Warfare mod_name=Superb Warfare
mod_license=GNU General Public License v3.0 mod_license=GNU General Public License v3.0
mod_description=A Warfare Mod mod_description=A Warfare Mod
mod_version=0.7.3 mod_version=0.7.4
mod_authors=Atsuishio, Roki27, Light_Quanta mod_authors=Atsuishio, Roki27, Light_Quanta
# dependencies # dependencies
jei_version=19.21.0.247 jei_version=19.21.0.247

View file

@ -223,7 +223,8 @@ public class ClickHandler {
if (key == ModKeyMappings.DISMOUNT.getKey().getValue()) { if (key == ModKeyMappings.DISMOUNT.getKey().getValue()) {
handleDismountPress(player); handleDismountPress(player);
} }
if (key == ModKeyMappings.EDIT_MODE.getKey().getValue() && ClientEventHandler.burstFireAmount == 0 && stack.getItem() instanceof GunItem) { if (key == ModKeyMappings.EDIT_MODE.getKey().getValue() && ClientEventHandler.burstFireAmount == 0
&& stack.getItem() instanceof GunItem gunItem && gunItem.isCustomizable(stack)) {
ClientEventHandler.holdFire = false; ClientEventHandler.holdFire = false;
if (!isEditing) { if (!isEditing) {