mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2025-01-09 16:49:35 +01:00
Fix crash
This commit is contained in:
parent
c8611b08f9
commit
6143832ee3
1 changed files with 1 additions and 0 deletions
|
@ -274,6 +274,7 @@ local function bend_straight_rail(pos, towards)
|
|||
if rail_type == 0 then return end
|
||||
|
||||
-- Only bend unbent rails
|
||||
if not nodedef._mcl_minecarts then return end
|
||||
if node.name ~= nodedef._mcl_minecarts.base_name then return end
|
||||
|
||||
-- only bend rails that have at least one free end
|
||||
|
|
Loading…
Reference in a new issue