Фиксы (#228)
* fix: morgues and bodybags can store more than 1 entity * fix: rename BluespaceSilo to BluespaceStorage * fix: fix felinid`s missing sound * fix: fix missing hatch airlock`s states * add: translation for hatch airlocks * add: texture localization for airlocks * add: add new word to slang.json * fix: fix wrong letter on cargo airlock`s texture * fix: fix material whitelist part one * git commit * fix: fix lathe whitelist
This commit is contained in:
@@ -296,7 +296,7 @@ public abstract class SharedMaterialStorageSystem : EntitySystem
|
||||
var multiplier = TryComp<StackComponent>(toInsert, out var stackComponent) ? stackComponent.Count : 1;
|
||||
var totalVolume = 0;
|
||||
|
||||
var gridUid = HasComp<BluespaceSiloComponent>(receiver) &&
|
||||
var gridUid = HasComp<BluespaceStorageComponent>(receiver) &&
|
||||
TryComp<TransformComponent>(receiver, out var transformComponent)
|
||||
? transformComponent.GridUid
|
||||
: null;
|
||||
@@ -348,8 +348,10 @@ public abstract class SharedMaterialStorageSystem : EntitySystem
|
||||
{
|
||||
if (!Resolve(uid, ref component, false))
|
||||
return;
|
||||
|
||||
var ev = new GetMaterialWhitelistEvent(uid);
|
||||
RaiseLocalEvent(uid, ref ev);
|
||||
|
||||
component.MaterialWhiteList = ev.Whitelist;
|
||||
Dirty(uid, component);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user