Fix bible ranged interactions. (#6730)
This commit is contained in:
@@ -37,6 +37,9 @@ namespace Content.Server.Bible
|
|||||||
|
|
||||||
private void OnAfterInteract(EntityUid uid, BibleComponent component, AfterInteractEvent args)
|
private void OnAfterInteract(EntityUid uid, BibleComponent component, AfterInteractEvent args)
|
||||||
{
|
{
|
||||||
|
if (!args.CanReach)
|
||||||
|
return;
|
||||||
|
|
||||||
var currentTime = _gameTiming.CurTime;
|
var currentTime = _gameTiming.CurTime;
|
||||||
|
|
||||||
if (currentTime < component.CooldownEnd)
|
if (currentTime < component.CooldownEnd)
|
||||||
|
|||||||
Reference in New Issue
Block a user