Welding tweaks (#27959)
This commit is contained in:
@@ -217,7 +217,7 @@ public abstract partial class SharedToolSystem : EntitySystem
|
||||
return false;
|
||||
|
||||
// check if the tool allows being used
|
||||
var beforeAttempt = new ToolUseAttemptEvent(user);
|
||||
var beforeAttempt = new ToolUseAttemptEvent(user, fuel);
|
||||
RaiseLocalEvent(tool, beforeAttempt);
|
||||
if (beforeAttempt.Cancelled)
|
||||
return false;
|
||||
@@ -296,4 +296,3 @@ public abstract partial class SharedToolSystem : EntitySystem
|
||||
public sealed partial class CableCuttingFinishedEvent : SimpleDoAfterEvent;
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
Reference in New Issue
Block a user