Compare commits

...

2 commits

Author SHA1 Message Date
Clown
872e5c9cdb
Bump Jabby v0.2.0-rc.9 (#197)
Some checks failed
analysis / Run Luau Analyze (push) Has been cancelled
deploy-docs / build (push) Has been cancelled
publish-npm / publish (push) Has been cancelled
unit-testing / Run Luau Tests (push) Has been cancelled
deploy-docs / Deploy (push) Has been cancelled
Fixes demo not running because of breaking changes in Jabby
2025-02-21 18:26:06 +01:00
lolmanurfunny
4c5e5e1968
Fix redundant checks in world_remove (#198) 2025-02-21 18:10:24 +01:00
3 changed files with 13 additions and 9 deletions

View file

@ -56,17 +56,21 @@ world:set(PreSimulation, Event, RunService.PreSimulation)
world:add(PreAnimation, Phase)
world:set(PreAnimation, Event, RunService.PreAnimation)
table.insert(jabby.public, {
class_name = "World",
jabby.register({
applet = jabby.applets.world,
name = "MyWorld",
configuration = {
world = world,
debug = Name,
entities = {},
},
})
jabby.public.updated = true
table.insert(jabby.public, jabby_scheduler)
jabby.register({
applet = jabby.applets.scheduler,
name = "Scheduler",
configuration = {
scheduler = jabby_scheduler,
},
})
if RunService:IsClient() then
world:add(PreRender, Phase)

View file

@ -5,4 +5,4 @@ registry = "https://github.com/UpliftGames/wally-index"
realm = "shared"
[dependencies]
jabby = "alicesaidhi/jabby@0.2.0-rc.3"
jabby = "alicesaidhi/jabby@0.2.0-rc.9"

View file

@ -899,7 +899,7 @@ local function world_remove(world: World, entity: i53, id: i53)
end
local to = archetype_traverse_remove(world, id, from)
if from and not (from == to) then
if from ~= to then
local idr = world.component_index[id]
local on_remove = idr.hooks.on_remove
if on_remove then