summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2016-05-31 21:04:57 -0400
committerAlexander Pickering <alexandermpickering@gmail.com>2016-05-31 21:04:57 -0400
commit5ac62d7e27d5b18abf955a814a8dd4fb95452f1e (patch)
treec01fddd34fbcd794f2d3cb4d6fd0d6b4e0ab0187
parentfc11516ad82ca9dea25cf71a665632319bd06b39 (diff)
downloadgmstranded-5ac62d7e27d5b18abf955a814a8dd4fb95452f1e.tar.gz
gmstranded-5ac62d7e27d5b18abf955a814a8dd4fb95452f1e.tar.bz2
gmstranded-5ac62d7e27d5b18abf955a814a8dd4fb95452f1e.zip
Fixed buildsites not showing correctly
-rw-r--r--entities/entities/gms_base_entity.lua4
-rw-r--r--entities/entities/gms_buildsite.lua1
2 files changed, 3 insertions, 2 deletions
diff --git a/entities/entities/gms_base_entity.lua b/entities/entities/gms_base_entity.lua
index 09ad3d7..ee44f99 100644
--- a/entities/entities/gms_base_entity.lua
+++ b/entities/entities/gms_base_entity.lua
@@ -18,8 +18,8 @@ function ENT:Initialize()
self:SetSolid( SOLID_VPHYSICS )
end
- if self.onInitialize then
- self:onInitialize()
+ if self.OnInitialize then
+ self:OnInitialize()
end
end
diff --git a/entities/entities/gms_buildsite.lua b/entities/entities/gms_buildsite.lua
index a0f8199..a2b7b82 100644
--- a/entities/entities/gms_buildsite.lua
+++ b/entities/entities/gms_buildsite.lua
@@ -72,6 +72,7 @@ function ENT:Finish()
end
function ENT:OnUse( ply )
+ if(!self.LastUsed) then self.LastUsed = 0 end
if ( CurTime() - self.LastUsed < 0.5 ) then return end
self.LastUsed = CurTime()