Fix 3000 errors

This commit is contained in:
DrSmugleaf
2021-12-05 18:09:01 +01:00
parent 2bfec7ec62
commit 2a3b7d809d
569 changed files with 2979 additions and 3280 deletions

View File

@@ -34,7 +34,7 @@ namespace Content.Server.Nutrition.EntitySystems
if (args.Handled)
return;
if (TrySliceFood(uid, args.UserUid, args.UsedUid, component))
if (TrySliceFood(uid, args.User, args.Used, component))
args.Handled = true;
}
@@ -57,8 +57,7 @@ namespace Content.Server.Nutrition.EntitySystems
return false;
}
IEntity tempQualifier = EntityManager.SpawnEntity(component.Slice, transform.Coordinates);
var sliceUid = (EntityUid) tempQualifier;
var sliceUid = EntityManager.SpawnEntity(component.Slice, transform.Coordinates);
var lostSolution = _solutionContainerSystem.SplitSolution(uid, solution,
solution.CurrentVolume / FixedPoint2.New(component.Count));
@@ -87,8 +86,7 @@ namespace Content.Server.Nutrition.EntitySystems
// Split last slice
if (component.Count == 1) {
IEntity tempQualifier1 = EntityManager.SpawnEntity(component.Slice, transform.Coordinates);
var lastSlice = (EntityUid) tempQualifier1;
var lastSlice = EntityManager.SpawnEntity(component.Slice, transform.Coordinates);
// Fill last slice with the rest of the solution
FillSlice(lastSlice, solution);