Leaf maze demiplane + crayon update (#901)
* crayons update * Update workbench.yml * leaf maze demiplane * Update t2_leaf_maze.yml
This commit is contained in:
@@ -106,7 +106,7 @@ public sealed class CrayonSystem : SharedCrayonSystem
|
||||
private void OnCrayonBoundUI(EntityUid uid, CrayonComponent component, CrayonSelectMessage args)
|
||||
{
|
||||
// Check if the selected state is valid
|
||||
if (!_prototypeManager.TryIndex<DecalPrototype>(args.State, out var prototype) || !prototype.Tags.Contains("crayon"))
|
||||
if (!_prototypeManager.TryIndex<DecalPrototype>(args.State, out var prototype) || !prototype.Tags.Contains("CP14crayon")) //CP14 crayon
|
||||
return;
|
||||
|
||||
component.SelectedState = args.State;
|
||||
@@ -130,7 +130,7 @@ public sealed class CrayonSystem : SharedCrayonSystem
|
||||
component.Charges = component.Capacity;
|
||||
|
||||
// Get the first one from the catalog and set it as default
|
||||
var decal = _prototypeManager.EnumeratePrototypes<DecalPrototype>().FirstOrDefault(x => x.Tags.Contains("crayon"));
|
||||
var decal = _prototypeManager.EnumeratePrototypes<DecalPrototype>().FirstOrDefault(x => x.Tags.Contains("CP14crayon")); //CP14 crayon
|
||||
component.SelectedState = decal?.ID ?? string.Empty;
|
||||
Dirty(uid, component);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user