mirror of
https://github.com/minetest-mods/mesecons.git
synced 2025-07-01 07:10:21 +02:00
Use iterative algorithm for mesecon.find_receptor_on, major performance improvement for large
circuits. This also fixes a crash introduced with the previous commit that occured when placing a wire crossing.
This commit is contained in:
@ -15,8 +15,7 @@ mesecon.rules.default =
|
||||
{x=0, y=1, z=-1},
|
||||
{x=0, y=-1, z=-1}}
|
||||
|
||||
mesecon.rules.pplate = {{x=0, y=-2, z=0}}
|
||||
mesecon.mergetable(mesecon.rules.default, mesecon.rules.pplate)
|
||||
mesecon.rules.pplate = mesecon.mergetable(mesecon.rules.default, {{x=0, y=-2, z=0}})
|
||||
|
||||
mesecon.rules.buttonlike =
|
||||
{{x = 1, y = 0, z = 0},
|
||||
|
Reference in New Issue
Block a user