Fix bible ranged interactions. (#6730)

This commit is contained in:
Leon Friedrich 2022-02-16 16:06:33 +13:00 committed by GitHub
parent 3abc7a443e
commit d9d7216377
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -37,6 +37,9 @@ namespace Content.Server.Bible
private void OnAfterInteract(EntityUid uid, BibleComponent component, AfterInteractEvent args)
{
if (!args.CanReach)
return;
var currentTime = _gameTiming.CurTime;
if (currentTime < component.CooldownEnd)