try to fix crash

This commit is contained in:
Soda Can 2026-03-10 15:20:41 +11:00
parent 569c7f35c0
commit 6c101a6b1b
12 changed files with 5 additions and 1 deletions

View file

@ -194,6 +194,10 @@ void ModLoader::OnLevelUnload() {
void ModLoader::NotifyUpdate(float deltaTime) {
for (auto& mod : m_mods) {
if (!mod.healthy) continue;
if (mod.instance == nullptr) {
mod.healthy = false;
continue;
}
try {
if (!mod.instance->OnUpdate(deltaTime)) {
mod.healthy = false;

View file

@ -1,4 +1,4 @@
 ServerLevel.cpp
 SDK.cpp
Microsoft (R) Incremental Linker Version 14.44.35222.0
Copyright (C) Microsoft Corporation. All rights reserved.
"/OUT:S:\GitHub\Faucet\x64\Debug\Faucet.exe" /INCREMENTAL "/ILK:x64\Debug\Faucet.ilk" d3d11.lib ..\Minecraft.World\x64_Debug\Minecraft.World.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib XInput9_1_0.lib ..\Minecraft.Client\Windows64\Miles\Lib\mss64.lib wsock32.lib /MANIFEST "/MANIFESTUAC:level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG "/PDB:S:\GitHub\Faucet\x64\Debug\Minecraft.Client.pdb" /TLBID:1 /DYNAMICBASE /NXCOMPAT "/IMPLIB:S:\GitHub\Faucet\x64\Debug\Faucet.lib" /MACHINE:X64 x64\Debug\MinecraftWindows.res

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.