Add natural mob spawning for rotwalker
This commit is contained in:
@@ -32,6 +32,7 @@ export function mod_sources(mods_dir: string): ServerModSource[] {
|
||||
items: mod.items.map((i) => i.json),
|
||||
recipes: mod.recipes.map((r) => r.json),
|
||||
ores: mod.ores.map((o) => o.json),
|
||||
spawns: mod.spawns.map((s) => s.json),
|
||||
entities: mod.entities.map((e) => e.json),
|
||||
entity_models: mod.entity_models.map((m) => m.json),
|
||||
tags: mod.tags.map((t) => t.json),
|
||||
@@ -67,6 +68,8 @@ export async function test_game(mods_dir: string, save?: WorldSave, seed = "test
|
||||
};
|
||||
const game: GameServer = await start_game(host, save, seed, mod_sources(mods_dir));
|
||||
game.chunk_send_budget_ms = Infinity;
|
||||
// tests that want natural spawning turn it back on
|
||||
game.do_mob_spawning = false;
|
||||
// deno-lint-ignore no-explicit-any
|
||||
const take = (conn: number): any[] => {
|
||||
const messages = outbox.get(conn) ?? [];
|
||||
|
||||
Reference in New Issue
Block a user