Skip to content

Commit 770d631

Browse files
committed
Fix trees
1 parent 5149fb7 commit 770d631

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

scripts/entities/tree.lua

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,11 @@ local classData = EntityRegistry.ClassBuilder()
55
classData:AddProperty("scale", { type = "float", default = 1, isNetworked = true })
66

77
classData:On("init", function (self)
8-
local physSettings = {
9-
kind = "static",
10-
objectLayer = Constants.ObjectLayerStatic
11-
}
12-
138
if CLIENT then
149
local model = AssetLibrary.GetModel("tree-01-" .. math.random(1, 4))
1510

1611
local gfx = self:AddComponent("graphics")
17-
gfx:AttachRenderable(model, Constants.RenderMaskOther)
12+
gfx:AttachRenderable(model, Constants.RenderMask3D)
1813

1914
local node = self:GetComponent("node")
2015
node:Scale(Vec3f(self:GetProperty("scale")))

0 commit comments

Comments
 (0)