Skip to content

Commit

Permalink
Fixed Combine Overlay not correctly showing location based on the Are…
Browse files Browse the repository at this point in the history
…a Displays plugin from Clockwork
  • Loading branch information
kurozael authored Nov 27, 2019
1 parent 605182a commit c916fad
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions upload/gamemodes/hl2rp/schema/sv_schema.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--[[
CloudSixteen.com do not share, re-distribute or modify
© CloudSixteen.com do not share, re-distribute or modify
without permission of its author ([email protected]).
--]]

Expand Down Expand Up @@ -556,11 +556,10 @@ end;

-- A function to get a player's location.
function Schema:PlayerGetLocation(player)
local areaNames = Clockwork.plugin:FindByID("Area Names");
local closest;

if (areaNames) then
for k, v in pairs(areaNames.areaNames) do
if (cwAreaDisplays) then
for k, v in pairs(cwAreaDisplays.areaNames) do
if (Clockwork.entity:IsInBox(player, v.minimum, v.maximum)) then
if (string.sub(string.lower(v.name), 1, 4) == "the ") then
return string.sub(v.name, 5);
Expand Down

0 comments on commit c916fad

Please sign in to comment.