chore: refractor

This commit is contained in:
2026-01-08 22:58:58 +02:00
parent da7de7b08a
commit 2c41f40151
49 changed files with 6 additions and 6 deletions

View File

@@ -0,0 +1,26 @@
--!native
--!optimize 2
local mod = {
name = "Blockscraft",
description = "Base Blockscraft blocks",
ns = "mc",
author = { "ocbwoy3" }
}
local rep = game:GetService("ReplicatedStorage"):WaitForChild("Blocks")
local upd = game:GetService("ReplicatedStorage"):WaitForChild("BlockUpdateOperations")
function mod.init()
for a,b in pairs(script.blocks:GetChildren()) do
local upop = b:FindFirstChild("BlockUpdateOperation")
if upop then
upop.Name = b:GetAttribute("n")
upop:SetAttribute("n",b:GetAttribute("n"))
upop.Parent = upd
end
b:Clone().Parent = rep
end
end
return mod