Fix crayon losing durability on stamped paper (#34202)
This commit is contained in:
@@ -101,7 +101,9 @@ public sealed class PaperSystem : EntitySystem
|
|||||||
{
|
{
|
||||||
// only allow editing if there are no stamps or when using a cyberpen
|
// only allow editing if there are no stamps or when using a cyberpen
|
||||||
var editable = entity.Comp.StampedBy.Count == 0 || _tagSystem.HasTag(args.Used, "WriteIgnoreStamps");
|
var editable = entity.Comp.StampedBy.Count == 0 || _tagSystem.HasTag(args.Used, "WriteIgnoreStamps");
|
||||||
if (_tagSystem.HasTag(args.Used, "Write") && editable)
|
if (_tagSystem.HasTag(args.Used, "Write"))
|
||||||
|
{
|
||||||
|
if (editable)
|
||||||
{
|
{
|
||||||
if (entity.Comp.EditingDisabled)
|
if (entity.Comp.EditingDisabled)
|
||||||
{
|
{
|
||||||
@@ -117,6 +119,7 @@ public sealed class PaperSystem : EntitySystem
|
|||||||
entity.Comp.Mode = PaperAction.Write;
|
entity.Comp.Mode = PaperAction.Write;
|
||||||
_uiSystem.OpenUi(entity.Owner, PaperUiKey.Key, args.User);
|
_uiSystem.OpenUi(entity.Owner, PaperUiKey.Key, args.User);
|
||||||
UpdateUserInterface(entity);
|
UpdateUserInterface(entity);
|
||||||
|
}
|
||||||
args.Handled = true;
|
args.Handled = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user