Commit Graph

28 Commits

Author SHA1 Message Date
Elias Åström 488f80d950 Clean file frames.lua to make more readable
- "#(array)" replaced with "#array"
- "(a and b) or c" replaced with "a and b or c"
- Cleaned some other places with unnecessary parenthesis
- "a,b" replaced with "a, b"
- "a+b" replaced with "a + b" (and for all other binops)
- "{a, b, c}" replaced with "{ a, b, c }"
- "-n + a" replaced with "a - n"
- Removed trailing whitespace
- Blank lines added in some very dense places
- Very long lines broken into shorter lines
- Use modern functions like vector.new and vector.round
- Align with spaces instead of tabs
2018-08-25 12:24:58 +02:00
Elias Åström d74c250a40 Preserve active timers at frame move
Previously timers were not copied over to the new nodes when frames
move.  This lead to blinky plants from mesecons to stop working after a
platform has moved, and buttons getting stuck in their pressed state.

Now the timers state for active timers are copied from the old node
positions to the new node positions.
2018-08-25 12:24:58 +02:00
Jordan Irwin 97e1c8b7f2 Replace deprecated method 'setting_getbool' with 'settings:get_bool' (#369) 2017-06-05 10:50:30 -04:00
raymoo 63efc395cd fix node dupe exploit in frames
You can dupe nodes by placing them on a frame, because the on_rightclick wouldn't return the new itemstack.
2016-10-14 05:41:31 -03:00
Vanessa Ezekowitz 8da4d057b0 update to latest mesecons API
requires mesecons commit 5be179bf110b44bdc06df6dbfde4e61487cf0635 or later.
2014-11-22 13:58:38 -05:00
Novatux 6a08071d86 Upgrades to battery boxes too, prevent frames from moving too often (one move every second max) 2014-05-23 19:58:41 +02:00
Xanthin 39c41a06f4 Add german translations for all mods 2014-04-22 16:30:27 -04:00
Boba 44dbc75b61 Fix typo in frame and template motor recipes 2014-04-14 20:54:28 -04:00
Boba 061d1a3ab4 Fix crash when using the template tool 2014-04-14 20:52:57 -04:00
Novatux b28001e36f Infinite stacks fix 2014-01-18 13:29:06 +01:00
Novatux e1c995f654 Actually call the mvps callback 2014-01-18 13:29:06 +01:00
Novatux 52e7014b7c Mesecons mvps support, better frames 2014-01-18 13:29:06 +01:00
Novatux 8c1be3b48e A few fixes 2014-01-18 13:29:06 +01:00
Novatux 8fba5e1140 Make those frames able to move 2014-01-18 13:29:06 +01:00
Novatux 68f7d34e1b First tests 2014-01-18 13:29:06 +01:00
ShadowNinja 5cf765b2f1 Localize most variables 2013-12-17 13:56:37 -05:00
ShadowNinja f3d8b47b20 Add support for minetest.swap_node 2013-12-10 20:14:39 -05:00
ShadowNinja 354ee6f313 Add missing translations 2013-11-27 16:18:52 -05:00
Novatux 76879424ae Add crafts for frames and templates. 2013-10-26 09:13:55 +02:00
Novatux 808d382867 Better tempaltes 2013-10-19 11:28:16 +02:00
Novatux 66e4b5ede4 Remove remaining frames.addVect 2013-10-17 18:33:21 +02:00
Novatux a73d568e58 Bugfix 2013-10-13 16:24:17 +02:00
Novatux 48d571bd90 Add drop to templates 2013-10-13 11:09:08 +02:00
Novatux 3cf0d331f0 Make template motors have an owner and check area protection 2013-10-13 10:34:58 +02:00
Novatux c06cdf603e Add templates 2013-10-13 10:30:14 +02:00
Novatux a579ee829a Make frame motors have an owner and check area protection 2013-10-06 14:20:13 +02:00
Novatux 48ea6fb99d Use only 1 node for frame motors. 2013-08-31 15:04:08 +02:00
ShadowNinja 5d470cd753 Move files to subfolders 2013-07-11 12:31:00 -04:00