Fixes battery weapons changing firemode on wield (#37085)
Credit to Happyrobot33 for the implementation Co-authored-by: Matthew Herber <32679887+happyrobot33@users.noreply.github.com>
This commit is contained in:
@@ -82,6 +82,10 @@ public sealed class BatteryWeaponFireModesSystem : EntitySystem
|
||||
|
||||
private void OnUseInHandEvent(EntityUid uid, BatteryWeaponFireModesComponent component, UseInHandEvent args)
|
||||
{
|
||||
if(args.Handled)
|
||||
return;
|
||||
|
||||
args.Handled = true;
|
||||
TryCycleFireMode(uid, component, args.User);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user