From bb53af1930307c589f258be8e582d6765926fe78 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Thu, 2 Jun 2016 18:35:02 -0400 Subject: Fixed bug with structures not showing up correctly client side --- entities/entities/gms_generic_structure.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'entities') 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 ) -- cgit v1.2.3-70-g09d2