mesh loader v2
This commit is contained in:
@@ -22,7 +22,6 @@ function MeshBuilder:initialize(link, maxQuota)
|
||||
net.receive("holograms", function()
|
||||
local hasNext = net.readBit()
|
||||
|
||||
local test = {}
|
||||
while hasNext == 1 do
|
||||
local name = net.readString()
|
||||
|
||||
@@ -30,14 +29,16 @@ function MeshBuilder:initialize(link, maxQuota)
|
||||
local holo = ent:toHologram()
|
||||
|
||||
table.insert(self._objects, {name = name, holo = holo})
|
||||
table.insert(test, {name = name, holo = holo})
|
||||
end)
|
||||
|
||||
hasNext = net.readBit()
|
||||
end
|
||||
|
||||
self:onHologramsReceived(self._objects)
|
||||
self:_applyMeshes()
|
||||
|
||||
timer.simple(0, function()
|
||||
self:onHologramsReceived(self._objects)
|
||||
end)
|
||||
end)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user