diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-06-10 08:47:03 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-06-10 08:47:03 +0200 |
commit | ed06d13b5c2f07a67ef74a8aea6fc3e9d8b48ba8 (patch) | |
tree | 33e30f06c3ff8d89cf67f69271bdb23770ee86bb /MCServer/Plugins/ProtectionAreas/Storage.lua | |
parent | Fixed previous commit. (diff) | |
download | cuberite-ed06d13b5c2f07a67ef74a8aea6fc3e9d8b48ba8.tar cuberite-ed06d13b5c2f07a67ef74a8aea6fc3e9d8b48ba8.tar.gz cuberite-ed06d13b5c2f07a67ef74a8aea6fc3e9d8b48ba8.tar.bz2 cuberite-ed06d13b5c2f07a67ef74a8aea6fc3e9d8b48ba8.tar.lz cuberite-ed06d13b5c2f07a67ef74a8aea6fc3e9d8b48ba8.tar.xz cuberite-ed06d13b5c2f07a67ef74a8aea6fc3e9d8b48ba8.tar.zst cuberite-ed06d13b5c2f07a67ef74a8aea6fc3e9d8b48ba8.zip |
Diffstat (limited to '')
-rw-r--r-- | MCServer/Plugins/ProtectionAreas/Storage.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MCServer/Plugins/ProtectionAreas/Storage.lua b/MCServer/Plugins/ProtectionAreas/Storage.lua index e9479fcbd..10cc469e5 100644 --- a/MCServer/Plugins/ProtectionAreas/Storage.lua +++ b/MCServer/Plugins/ProtectionAreas/Storage.lua @@ -186,14 +186,14 @@ function cStorage:LoadPlayerAreas(a_PlayerName, a_PlayerX, a_PlayerZ, a_WorldNam assert(a_WorldName);
assert(self);
- res = cPlayerAreas:new();
-
-- Bounds for which the areas are loaded
local BoundsMinX = a_PlayerX - g_AreaBounds;
local BoundsMaxX = a_PlayerX + g_AreaBounds;
local BoundsMinZ = a_PlayerZ - g_AreaBounds;
local BoundsMaxZ = a_PlayerZ + g_AreaBounds;
+ local res = cPlayerAreas:new();
+
-- Load the areas from the DB, based on the player's location
local sql =
"SELECT ID, MinX, MaxX, MinZ, MaxZ FROM Areas WHERE " ..
|