summaryrefslogtreecommitdiff
path: root/entities
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2016-06-02 18:35:02 -0400
committerAlexander Pickering <alexandermpickering@gmail.com>2016-06-02 18:35:02 -0400
commitbb53af1930307c589f258be8e582d6765926fe78 (patch)
treea407adf854a38b822d743d5df150deab978b8ad2 /entities
parent5ac62d7e27d5b18abf955a814a8dd4fb95452f1e (diff)
downloadgmstranded-development.tar.gz
gmstranded-development.tar.bz2
gmstranded-development.zip
Fixed bug with structures not showing up correctly client sidedevelopment
Diffstat (limited to 'entities')
-rw-r--r--entities/entities/gms_generic_structure.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/entities/entities/gms_generic_structure.lua b/entities/entities/gms_generic_structure.lua
index d76ed30..9617da8 100644
--- a/entities/entities/gms_generic_structure.lua
+++ b/entities/entities/gms_generic_structure.lua
@@ -7,7 +7,8 @@ ENT.Base = "gms_base_entity"
function ENT:Initialize()
print("Initalize called!")
util.PrecacheModel(self.Model)
- if self.Model then self:SetModel(self.Model) end
+ --For some reason this bugs out if run client side
+ if SERVER then if self.Model then self:SetModel(self.Model) end end
if self.onInitialize then self:onInitialize() end
if CLIENT then return end
self:PhysicsInit( SOLID_VPHYSICS )