Skip to content

Commit

Permalink
Фикс абуза автолатов
Browse files Browse the repository at this point in the history
  • Loading branch information
VigersRay committed Dec 11, 2024
1 parent ccae317 commit 4309b24
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Content.Server/Lathe/LatheSystem.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using Content.Server._Sunrise.DontSellingGrid;
using Content.Server.Administration.Logs;
using Content.Server.Atmos.EntitySystems;
using Content.Server.Fluids.EntitySystems;
Expand Down Expand Up @@ -229,6 +230,8 @@ public void FinishProducing(EntityUid uid, LatheComponent? comp = null, LathePro
if (comp.CurrentRecipe.Result is { } resultProto)
{
var result = Spawn(resultProto, Transform(uid).Coordinates);
// Sunrise-Edit
EnsureComp<DontSellComponent>(result);
_stack.TryMergeToContacts(result);
}

Expand Down
16 changes: 16 additions & 0 deletions Resources/Changelog/ChangelogSunrise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7768,3 +7768,19 @@
type: Tweak
id: 546
time: '2024-12-11T01:58:08.284225+00:00'
- author: VigersRay
changes:
- message: "\u0421\u0442\u0430\u043D\u0446\u0438\u044F \u0431\u043E\u043B\u044C\u0448\
\u0435 \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u043F\u0440\u043E\u0434\u0430\
\u0432\u0430\u0442\u044C \u0432\u0435\u0449\u0438 \u043F\u0440\u044F\u043C\u043E\
\u0433\u043E \u043A\u0440\u0430\u0444\u0442\u0430 (\u0412\u0441\u0451 \u0447\
\u0442\u043E \u0434\u0435\u043B\u0430\u0435\u0442\u0441\u044F \u043D\u0430 \u043B\
\u044E\u0431\u044B\u0445 \u0442\u0438\u043F\u0430\u0445 \u0430\u0432\u0442\u043E\
\u043B\u0430\u0442\u043E\u0432). \u0414\u043B\u044F \u0437\u0430\u0440\u0430\
\u0431\u043E\u0442\u043A\u0430 \u043D\u0443\u0436\u043D\u043E \u0441\u043E\u0437\
\u0434\u0430\u0432\u0430\u0442\u044C \u043C\u043D\u043E\u0433\u043E-\u043A\u043E\
\u043C\u043F\u043E\u043D\u0435\u043D\u0442\u043D\u044B\u0435 \u0443\u0441\u0442\
\u0440\u043E\u0439\u0441\u0442\u0432\u0430."
type: Tweak
id: 547
time: '2024-12-11T01:59:58.794183+00:00'

0 comments on commit 4309b24

Please sign in to comment.