From cb6a25329c9db127a48c35dfc0423b89f4503473 Mon Sep 17 00:00:00 2001 From: Singularis Date: Thu, 30 Jan 2025 21:04:06 +0100 Subject: [advtrains] drobná oprava MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- advtrains/trackplacer.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'advtrains') diff --git a/advtrains/trackplacer.lua b/advtrains/trackplacer.lua index 13a0dac..5291923 100644 --- a/advtrains/trackplacer.lua +++ b/advtrains/trackplacer.lua @@ -294,8 +294,8 @@ local function on_place(itemstack, placer, pointed_thing, nnprefix, def) if not ndef or not ndef.buildable_to then return itemstack, true -- not place for a track end - if ndef.suitable_substrate then - s = ndef.suitable_substrate(upos) + if def.suitable_substrate then + s = def.suitable_substrate(upos) else s = undef and undef.walkable end @@ -324,8 +324,8 @@ local function on_place(itemstack, placer, pointed_thing, nnprefix, def) if not ndef or not ndef.buildable_to then return itemstack, true -- not place for a track end - if ndef.suitable_substrate then - s = ndef.suitable_substrate(upos) + if def.suitable_substrate then + s = def.suitable_substrate(upos) else s = undef and undef.walkable end -- cgit v1.2.3