feat: loot tables (#43)

self-explanatory

Reviewed-on: https://git.neolegacy.dev/neoStudiosLCE/neoLegacy/pulls/43
This commit is contained in:
Fireblade
2026-07-12 02:05:06 +01:00
parent 0449af2be6
commit 54528fac16
146 changed files with 6397 additions and 1277 deletions
+8
View File
@@ -17,6 +17,8 @@
#include "Minecraft.World.h"
#include "../Minecraft.Client/ServerLevel.h"
#include "LootTableManager.h"
#ifdef _DURANGO
#include "DurangoStats.h"
#else
@@ -28,6 +30,12 @@ void MinecraftWorld_RunStaticCtors()
// The ordering of these static ctors can be important. If they are within statement blocks then
// DO NOT CHANGE the ordering - 4J Stu
// preload loot tables so bonus chests dont appear empty upon world generation
if (!LootTableManager::Get().LoadFromDisk(""))
{
app.DebugPrintf("FATAL: LootTableManager failed to load loot tables\n");
}
Packet::staticCtor();
{