Fix 3000 errors
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user