Kafkatorio/modules/events-mod
Lazzexus 8040abfd82 Fix collision layer name: "resource-layer" -> "resource" (Factorio 2.0)
Caught by an in-game crash on real Factorio 2.0.77 (with Space
Exploration + Krastorio 2 loaded):

  Error while running event kafkatorio-events::on_chunk_generated
  Unknown collision-layer name: resource-layer

Factorio 2.0 made collision layers fully prototype-defined (previously
a fixed set of built-in names). Checked the official factorio-data
2.0.77 tag's core/lualib/collision-mask-defaults.lua: resource-type
entities now use layer name "resource", not "resource-layer". Fixed
both find_entities_filtered() call sites in EntityUpdateHandler.ts
that scan for resource entities around mined/placed tiles and newly
generated chunks.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-12 16:32:57 +02:00
..
src/main Fix collision layer name: "resource-layer" -> "resource" (Factorio 2.0) 2026-10-12 16:32:57 +02:00
build.gradle.kts Port events-mod to Factorio 2.0.77, declare SE/Krastorio 2 compatibility 2026-10-12 15:06:30 +02:00
mod-portal-description.md big ol' refactor of the Gradle Factorio Mod 2022-12-18 01:41:14 +01:00
package-lock.json Fix compile errors surfaced by actually building against Factorio 2.0.77 2026-10-12 15:27:50 +02:00
package.json Fix compile errors surfaced by actually building against Factorio 2.0.77 2026-10-12 15:27:50 +02:00
tsconfig.json Fix mod zip layout: set tsconfig rootDir so control.lua lands at mod root 2026-10-12 15:53:03 +02:00