DoAfter and other bugfixes (#14669)

This commit is contained in:
Leon Friedrich
2023-03-15 15:05:53 +13:00
committed by GitHub
parent 5df1d6194f
commit 2f88173730
6 changed files with 29 additions and 8 deletions

View File

@@ -69,7 +69,7 @@ public sealed class WeldableSystem : EntitySystem
if (!CanWeld(uid, tool, user, component))
return false;
var toolEvData = new ToolEventData(new WeldFinishedEvent(user, tool), targetEntity: uid);
var toolEvData = new ToolEventData(new WeldFinishedEvent(user, tool), cancelledEv: new WeldCancelledEvent(),targetEntity: uid);
component.BeingWelded = _toolSystem.UseTool(tool, user, uid, component.WeldingTime.Seconds, new[] { component.WeldingQuality }, toolEvData, fuel: component.FuelConsumption);
// Log attempt