Skip to content

Commit

Permalink
Alexandre fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Svinthefirst committed Dec 26, 2024
1 parent 8b21da3 commit 91fdcb8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Content.Server/Bible/BibleSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
using Robust.Shared.Prototypes;
using Robust.Shared.Random;
using Robust.Shared.Timing;
using System.Linq;

namespace Content.Server.Bible
{
Expand Down Expand Up @@ -161,7 +162,7 @@ private void OnAfterInteract(EntityUid uid, BibleComponent component, AfterInter
//Sunrise-start

if (TryPrototype((EntityUid) args.Target, out var prototype)
&& prototype.ID == "MobPig"
&& (prototype.ID == "MobPig" || (prototype.Parents != null && prototype.Parents.Contains<string>("MobPig")))
&& !HasComp<SawComponent>(args.Target))
{
if (_lookUp.GetEntitiesInRange<IdentityComponent>(Transform(uid).Coordinates, 5).Count >= 5
Expand Down

0 comments on commit 91fdcb8

Please sign in to comment.