diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2016-05-31 21:04:57 -0400 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2016-05-31 21:04:57 -0400 |
| commit | 5ac62d7e27d5b18abf955a814a8dd4fb95452f1e (patch) | |
| tree | c01fddd34fbcd794f2d3cb4d6fd0d6b4e0ab0187 /entities | |
| parent | fc11516ad82ca9dea25cf71a665632319bd06b39 (diff) | |
| download | gmstranded-5ac62d7e27d5b18abf955a814a8dd4fb95452f1e.tar.gz gmstranded-5ac62d7e27d5b18abf955a814a8dd4fb95452f1e.tar.bz2 gmstranded-5ac62d7e27d5b18abf955a814a8dd4fb95452f1e.zip | |
Fixed buildsites not showing correctly
Diffstat (limited to 'entities')
| -rw-r--r-- | entities/entities/gms_base_entity.lua | 4 | ||||
| -rw-r--r-- | entities/entities/gms_buildsite.lua | 1 |
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() |
