-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed Combine Overlay not correctly showing location based on the Are…
…a Displays plugin from Clockwork
- Loading branch information
Showing
1 changed file
with
3 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]). | ||
--]] | ||
|
||
|
@@ -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); | ||
|