Fix 3000 errors
This commit is contained in:
@@ -273,7 +273,7 @@ namespace Content.Server.Construction
|
||||
if (doAfterState == DoAfterState.Cancelled)
|
||||
return HandleResult.False;
|
||||
|
||||
var insert = interactUsing.UsedUid;
|
||||
var insert = interactUsing.Used;
|
||||
|
||||
// Since many things inherit this step, we delegate the "is this entity valid?" logic to them.
|
||||
// While this is very OOP and I find it icky, I must admit that it simplifies the code here a lot.
|
||||
@@ -312,7 +312,7 @@ namespace Content.Server.Construction
|
||||
// we split the stack in two and insert the split stack.
|
||||
if (insertStep is MaterialConstructionGraphStep materialInsertStep)
|
||||
{
|
||||
if (_stackSystem.Split(insert, materialInsertStep.Amount, EntityManager.GetComponent<TransformComponent>(interactUsing.UserUid).Coordinates) is not {} stack)
|
||||
if (_stackSystem.Split(insert, materialInsertStep.Amount, EntityManager.GetComponent<TransformComponent>(interactUsing.User).Coordinates) is not {} stack)
|
||||
return HandleResult.False;
|
||||
|
||||
insert = stack;
|
||||
@@ -329,8 +329,7 @@ namespace Content.Server.Construction
|
||||
construction.Containers.Add(store);
|
||||
|
||||
// The container doesn't necessarily need to exist, so we ensure it.
|
||||
_containerSystem.EnsureContainer<Container>(uid, store)
|
||||
.Insert(EntityManager.GetEntity(insert));
|
||||
_containerSystem.EnsureContainer<Container>(uid, store).Insert(insert);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user