@@ -25,7 +25,6 @@ using Content.Shared.Stacks;
|
||||
using Content.Shared.Storage.Components;
|
||||
using Content.Shared.Timing;
|
||||
using Content.Shared.Verbs;
|
||||
using Content.Shared.Whitelist;
|
||||
using Robust.Shared.Audio.Systems;
|
||||
using Robust.Shared.Containers;
|
||||
using Robust.Shared.GameStates;
|
||||
@@ -157,9 +156,7 @@ public abstract class SharedStorageSystem : EntitySystem
|
||||
Grid = new List<Box2i>(component.Grid),
|
||||
MaxItemSize = component.MaxItemSize,
|
||||
StoredItems = storedItems,
|
||||
SavedLocations = component.SavedLocations,
|
||||
Whitelist = component.Whitelist,
|
||||
Blacklist = component.Blacklist
|
||||
SavedLocations = component.SavedLocations
|
||||
};
|
||||
}
|
||||
|
||||
@@ -171,8 +168,6 @@ public abstract class SharedStorageSystem : EntitySystem
|
||||
component.Grid.Clear();
|
||||
component.Grid.AddRange(state.Grid);
|
||||
component.MaxItemSize = state.MaxItemSize;
|
||||
component.Whitelist = state.Whitelist;
|
||||
component.Blacklist = state.Blacklist;
|
||||
|
||||
component.StoredItems.Clear();
|
||||
|
||||
@@ -1105,7 +1100,7 @@ public abstract class SharedStorageSystem : EntitySystem
|
||||
/// <returns>true if inserted, false otherwise</returns>
|
||||
public bool PlayerInsertEntityInWorld(Entity<StorageComponent?> uid, EntityUid player, EntityUid toInsert)
|
||||
{
|
||||
if (!Resolve(uid, ref uid.Comp) || !_interactionSystem.InRangeUnobstructed(player, uid.Owner))
|
||||
if (!Resolve(uid, ref uid.Comp) || !_interactionSystem.InRangeUnobstructed(player, uid))
|
||||
return false;
|
||||
|
||||
if (!Insert(uid, toInsert, out _, user: player, uid.Comp))
|
||||
@@ -1506,9 +1501,5 @@ public abstract class SharedStorageSystem : EntitySystem
|
||||
public List<Box2i> Grid = new();
|
||||
|
||||
public ProtoId<ItemSizePrototype>? MaxItemSize;
|
||||
|
||||
public EntityWhitelist? Whitelist;
|
||||
|
||||
public EntityWhitelist? Blacklist;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user