Commit Graph

71 Commits

Author SHA1 Message Date
David Leal a8daa417c4
Add GitHub workflow and luacheck (#545)
Add badge to README
Fix luacheck warnings
Remove node_ownership globals (and support)
2020-06-12 20:39:00 +02:00
Vanessa Dannenberg befe3ecc86 Fix incorrect numeric types for 5.3.0-dev
5.3.0-dev adds strict type checks for registration fields, hence this was not noticed earlier due to implicit string-number conversions
2020-05-27 18:32:57 +02:00
Luke aka SwissalpS 76a39e71b9 Cleanup duplicate call (#522)
No need to call get_inventory twice
2019-12-25 22:23:34 +01:00
David Leal d5df30c3ff Replace deprecated functions with newer ones (#510)
Use mod.conf
2019-09-14 12:55:41 +02:00
coil bb05ff8fd2 Reject constructor in constructor slot inventories (#505) 2019-07-21 12:40:57 +02:00
Christopher Head 4f78a69ffc Fix trailing whitespace (#482)
Trim all trailing whitespace characters,
2019-01-26 14:15:40 +01:00
Vanessa Dannenberg 44cb8df048 use basic_materials mod where possible. 2018-11-11 09:54:20 +01:00
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
SmallJoker fb93388f06 Replace deprecated invsize[] with size[] 2018-07-19 14:36:21 +02:00
Thomas--S 0fcc7a14c2 Replace old nodeupdate() with new minetest.check_for_falling() (#391) 2018-07-16 17:25:43 +02:00
Jordan Irwin 97e1c8b7f2 Replace deprecated method 'setting_getbool' with 'settings:get_bool' (#369) 2017-06-05 10:50:30 -04:00
Vanessa Ezekowitz e65c8b7130 Don't allow constructor to operate if bad facedir (fixes #328)
Also, use "simple" screwdriver mode for "off" constructor, and disable screwdriver for "on" one.
2017-04-13 20:48:18 -04:00
Vanessa Ezekowitz fab2c492c4 pipeworks has button on/off, button label, and button "base" cached
used them wherever possible
2017-04-11 19:19:29 -04:00
Vanessa Ezekowitz 8479a8c984 add pipeworks tube overlays to self-contained injector
also, gave it paramtype2 = "facedir" and removed the front connection
for consistency with other machines
2017-04-11 08:17:56 -04:00
Vanessa Ezekowitz a353a807bd allow per-injector stack split
(default off)
2017-04-11 05:36:39 -04:00
Vanessa Ezekowitz db0f8e04a1 fix wrong size of self-contained injector inv 2017-04-11 05:31:36 -04:00
Vanessa Ezekowitz af39221df9 only reject part of itemtack from chest/machine/etc., if possible
(e.g. if there's room for 50 of some item, and you send a stack of 99,
50 are added to the chest and a stack of 49 is rejected and sent
on to the next destination)
2017-04-09 20:35:11 -04:00
Vanessa Ezekowitz 78f16c3e8e label all ABMs for profiler 2017-03-31 19:15:25 -04:00
Diego Martínez 186f9b70ac Temporary fix for crash in constructor. 2017-03-06 23:02:39 -03: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
est31 a793747d92 Move coal furnaces to other/
They don't use power, move them to where they belong.
2015-06-18 04:16:47 +02:00
est31 d732c8dfbd Add listring functionality
Add shift-click functionality
2015-06-18 04:09:27 +02:00
Tim 137695ea67 allow activation/deactivation of frames/templates by config
have them deactivated by default due to a larger collection of associated issues
including but not limited to
* #170
* #216
* item duplication involving templates
* runaway machines
* traversal loop issues with huge machines leading to lag-outs
2015-03-16 18:58:41 -04:00
Tim 7ed1aa9398 correct injector inventory handling by tubes 2015-02-11 03:15:34 +01:00
Tim ce40d1cfb8 add group tubedevice_receiver to injector to fix the issue of it acting more like a tube than an inventory
it sent the items into all directions, when being injected into, instead of entering the injector as it used to
2015-02-08 12:27:10 +01:00
Vanessa Ezekowitz bccefd6997 fix other machines, battery boxes, etc to work with tube routing. 2015-02-07 03:47:53 -05:00
Vanessa Ezekowitz a413904ecd minetest.env:* --> minetest.* 2014-11-30 12:45:42 -05:00
Vanessa Ezekowitz 8da4d057b0 update to latest mesecons API
requires mesecons commit 5be179bf110b44bdc06df6dbfde4e61487cf0635 or later.
2014-11-22 13:58:38 -05:00
Novatux 35b10adb40 Fix items sending 2014-08-16 13:42:17 +02:00
Zefram 049129d9b8 Handle both pipeworks APIs
The new API function is now renamed to pipeworks.tube_inject_item(),
so use it under that name.  If it is not available, synthesise the new
API in terms of the old one.
2014-08-15 13:23:41 +02:00
Vanessa Ezekowitz 772c21cb04 don't put anchor in creative inv 2014-08-14 21:56:05 -04:00
Novatux baf7f61665 Compatibility with latest pipeworks 2014-08-14 21:29:56 +02:00
Zefram b001a67979 Administrative world anchor 2014-08-13 19:07:53 +01:00
ShadowNinja ab567e21ca Remove non-functional tetris machine 2014-08-04 13:43:57 -04:00
Zefram 8275091347 Improve injector interface
Make the injector's mode button lag-resistant.  Display the mode on
the button, as is done with other machines' toggle buttons.  Describe
the modes using the same words that are now used to distinguish the
corresponding pipeworks objects.  Expand name to "self-contained
injector", now that the pipeworks objects are also called "injector".
Show injector item image along with the item name at the head of the form.
2014-08-01 18:25:20 +01:00
ShadowNinja 14b30bfd0d Clean up constructor 2014-07-21 01:52:13 -04: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
Zefram ca69473664 fix tube properties for injector
By relying on another no-longer-extant definition, the injector didn't
visually connect to the tube below it.
2014-04-30 00:21:36 +01:00
Zefram 1a94fdc601 fix groups for injector
The injector was in no groups, and therefore not breakable by ordinary
means.  This was because the code referred to a defined variable that
went away in the course of a rewrite of the chests code.
2014-04-30 00:21:13 +01:00
Zefram f504178421 Fix drops for active machines
Active machine nodes need to drop their inactive counterpart.  Some were
missing that declaration.
2014-04-27 14:43:00 -04: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
Tim 8684fa1733 Fix constructor description 2014-03-30 14:13:04 -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