sbrl / Minetest-WorldEditAdditions

Extra tools and commands to extend WorldEdit for Minetest
https://worldeditadditions.mooncarrot.space/
Mozilla Public License 2.0
16 stars 3 forks source link

logic error due to operator precedence #93

Closed fluxionary closed 1 year ago

fluxionary commented 1 year ago

https://github.com/sbrl/Minetest-WorldEditAdditions/blob/8652ad6335f2d1576af0f99f759f073496358ad5/worldeditadditions_commands/commands/meta/for.lua#L57

this conditional is always false. i'm not certain what the correct code is.

VorTechnix commented 1 year ago

This is my original logic for this command. @sbrl refactored some things so it could be that parts[1] now has a different value than I expected. I'll look into it.

sbrl commented 1 year ago

Fixed in b88cec64d40df3665aed78c5c2fb24e0f421c101