Skip to content

Commit dce2b08

Browse files
committed
fix: fix onPortalTrySpawnPigZombie crash
1 parent b36ef8e commit dce2b08

3 files changed

Lines changed: 3 additions & 6 deletions

File tree

src/lse/events/EntityEvents.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ LL_TYPE_STATIC_HOOK(
201201
}
202202
}
203203
IF_LISTENED_END(EVENT_TYPES::onPortalTrySpawnPigZombie);
204-
origin(dimension, random);
204+
return origin(dimension, random);
205205
}
206206
} // namespace PortalTrySpawnPigZombie
207207

tests/LSETests/EventTests.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,6 @@ export const events = [
9292
"beforeMoneyTrans",
9393
"beforeMoneySet",
9494
/* Outdated Events */
95-
"onAttack",
96-
"onExplode",
97-
"onBedExplode",
9895
"onMobSpawn",
9996
];
10097

xmake.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ add_rules("mode.debug", "mode.release")
33
add_repositories("levimc-repo " .. (get_config("levimc_repo") or "https://github.com/LiteLDev/xmake-repo.git"))
44

55
if is_config("target_type", "server") then
6-
add_requires("levilamina 6a29adfc1de21be146d29cbcebd2e340701e65a8", {configs = {target_type = "server"}})
6+
add_requires("levilamina 419250a49121a60449db328b7d2eb146a2432a9f", {configs = {target_type = "server"}})
77
else
8-
add_requires("levilamina 6a29adfc1de21be146d29cbcebd2e340701e65a8", {configs = {target_type = "client"}})
8+
add_requires("levilamina 419250a49121a60449db328b7d2eb146a2432a9f", {configs = {target_type = "client"}})
99
end
1010

1111
add_requires("levibuildscript")

0 commit comments

Comments
 (0)