1
0
mirror of https://github.com/mt-mods/pipeworks.git synced 2024-12-28 20:00:27 +01:00
Commit Graph

855 Commits

Author SHA1 Message Date
cheapie
7ad991ce40 Assorted changes to tube breaking/repair behavior
* Tubes can now be intentionally broken using a hammer
* Log messages have been improved slightly for tube repair
* Punching a broken tube now causes damage due to the sharp edges
2021-03-27 19:51:23 -05:00
SmallJoker
d2954c5277 Get rid of most 5.4.0 texture warnings
This commit also shortens the lua_tube.lua code a bit
2021-03-24 19:47:30 +01:00
Vanessa Dannenberg
9ad6e5d07a Merge branch 'master' into 'master'
Add luacheck config and ci job

See merge request VanessaE/pipeworks!37
2021-02-25 16:34:42 +00:00
Buckaroo Banzai
31e1255245 Add luacheck config and ci job 2021-02-25 16:34:42 +00:00
Vanessa Dannenberg
a735d1a155 Merge branch 'm_small_fixes' into 'master'
Various small fixes

See merge request VanessaE/pipeworks!35
2021-02-07 12:46:16 +00:00
HybridDog
a2c0dd1130 Various small fixes
* Save the fakeplayer's wielded item in set_wielded_item
* pipeworks.luaentity: Return the found objects in get_objects_inside_radius
* Remove the invalid and unused on_blast return values in lua_tube.lua
  This should avoid a crash when a strong explosion happens next to a Lua Tube.
* Do not access a global "nodename" in a BUG message.
  This avoids a potential crash, in case the message actually appears in practice.
* Set the Flow Sensor and Fountain Head mesecons connection rules
* pipeworks.luaentity: Use the same function for move_to and set_pos
* (no functional change) Do not save the object returned by tube_inject_item into the "item1" local variable in filter-injector.lua
2021-02-07 11:58:18 +01:00
Vanessa Dannenberg
f0ef43823c Merge branch 'm_unused_loop_vars' into 'master'
Remove unused loop variables, trailing whitespace and fix mixed-whitespace indentations

See merge request VanessaE/pipeworks!34
2021-02-05 18:03:54 +00:00
HybridDog
17a602a5a1 Remove unused loop variables, trailing whitespace and fix mixed-whitespace indentations 2021-02-05 17:17:50 +01:00
Vanessa Dannenberg
2294a23582 Merge branch 'm_unused_code_removal' into 'master'
Remove or comment unused code and declare some variables local

See merge request VanessaE/pipeworks!33
2021-02-03 18:33:32 +00:00
HybridDog
b2d2ccbcba Remove or comment unused code and declare some variables local 2021-02-03 18:08:50 +01:00
Vanessa Dannenberg
8322f256c5 Merge branch 'master' into 'master'
Prevent the symptoms of Issue #33

See merge request VanessaE/pipeworks!31
2020-12-18 21:44:11 +00:00
Skgland
ba7eb19317
Prevent the symptoms of Issue #33
Try to prevent the crash from issue #33 by
replaving nil velocity or acceleration with (0,0,0).
This does not fix the underlying cause of them being nil,
but should prevent the crash.
2020-12-18 19:28:07 +01:00
VanessaE
065c953eba use the right gear item in node breaker 2020-10-28 12:30:48 -04:00
Vanessa Dannenberg
9a63d17e4a Merge branch 'm_disable_print_message' into 'master'
Log the "Pipeworks loaded!" message to infostream instead of printing it

See merge request VanessaE/pipeworks!30
2020-10-17 18:55:24 +00:00
Vanessa Dannenberg
d814357ddf Merge branch 'm_table_extends_clean' into 'master'
Make pipeworks.table_extend easier to read

See merge request VanessaE/pipeworks!29
2020-10-17 18:55:01 +00:00
HybridDog
c2fe5fe956 Make pipeworks.table_extend easier to read
In my opinion this clarifies that tbl2 is attached at the end of tbl
2020-10-17 20:50:20 +02:00
HybridDog
9dbaa5f4f6 Log the "Pipeworks loaded!" message to infostream instead of printing it 2020-10-17 20:46:44 +02:00
Vanessa Dannenberg
d93396600f Merge branch 'protected-access-to-wielders' into 'master'
Allow protected access to wielder inventories.

Closes #40

See merge request VanessaE/pipeworks!27
2020-09-24 15:33:17 +00:00
auouymous
c966a8a57d Allow players with the protection_bypass privilege or access to
the protection to access wielder node inventories.

Fixes #40.
2020-09-24 05:12:32 -06:00
Vanessa Dannenberg
61b061f669 Merge branch 'avoid-protection-check-on-chest-close' into 'master'
Avoid protection check on chest close.

Closes #23

See merge request VanessaE/pipeworks!26
2020-09-11 09:45:04 +00:00
auouymous
fe91d5eb46 Avoid protection check on chest close.
Fixes #23.
2020-09-10 23:12:11 -06:00
Vanessa Dannenberg
eb1064ca6d Merge branch 'patch-1' into 'master'
Update pipeworks.zh_CN.tr

See merge request VanessaE/pipeworks!25
2020-09-05 07:14:04 +00:00
wzy2006
f54e25ec52 Update pipeworks.zh_CN.tr 2020-09-05 06:25:58 +00:00
Vanessa Dannenberg
dedb0dd54e Merge branch 'tptube-api' into 'master'
Expose teleport tube database API

See merge request VanessaE/pipeworks!24
2020-08-10 17:54:28 +00:00
SX
477a024034 Expose teleport tube database API 2020-08-09 23:09:31 +03:00
Vanessa Dannenberg
34cb0e7682 Merge branch 'master' into 'master'
Add "get_recipe" digiline command for querying the current autocrafter recipe.

See merge request VanessaE/pipeworks!23
2020-07-30 00:40:41 +00:00
Fedja Beader
505fc7cc49 Add "get_recipe" digiline command for querying the current autocrafter recipe.
Useful for having the player teach the luacontroller how to craft various items.
2020-07-23 01:49:37 +02:00
Vanessa Dannenberg
cb58a646cf Merge branch 'undefined' into 'master'
Add Chinese Translation

See merge request VanessaE/pipeworks!22
2020-07-19 03:55:39 +00:00
wzy2006
e3135c53f0 Add Chinese Translation 2020-07-19 02:22:12 +00:00
Vanessa Dannenberg
366d57f4da Merge branch 'fix_connect_sides' into 'master'
Consider connect_sides for item transport

See merge request VanessaE/pipeworks!21
2020-06-30 10:39:52 +00:00
Alexander Ried
c79e68a80c Consider connect_sides for item transport
Previously connect_sides was only used to choose the correct visual
model, but not during item transport. This allowed items to exit tubes
in directions without a visual connection and enter objects from sides
that should not be connectable according to connect_sides.
For example an item could enter a chest from the front, if a tube passed
there.

This change saves the connect_sides in the meta table of the object
whenever the visual representation is updated. When nothing is cached
yet, it uses the old behavior. That way it does not break existing
builds.
2020-06-30 10:11:22 +00:00
Vanessa Dannenberg
9338c109a6 Merge branch 'rebased_luacontroller' into 'master'
Rebase lua_tube onto upstream luacontroller

See merge request VanessaE/pipeworks!20
2020-06-30 09:41:01 +00:00
tuedel
63bee98948 Fix typo in luatube update_real_port_states helper 2020-06-30 09:17:46 +00:00
groxxda
ee6c9991b9 Rebase lua_tube onto upstream luacontroller
Adds:
 - various bug fixes
 - error label on the formspec
 - lightweight interrupts
2020-06-30 09:15:50 +00:00
VanessaE
9eefe9c7bb add minimum minetest version key for contentdb 2020-06-03 13:00:28 -04:00
Vanessa Dannenberg
8281e3d068 Merge branch 'nodebreaker_fix' into 'master'
Prevent the node breaker from digging all nodes

See merge request VanessaE/pipeworks!19
2020-05-26 20:56:09 +00:00
upsilon
ed282b0298
Prevent node breaker from digging all nodes
A small mistake in the code allowed the node breaker to dig any node
using any tool, including hand.
2020-05-26 22:29:16 +02:00
SmallJoker
5410ea74f2 Fix wrong inventory_image and wield_image types 2020-05-07 12:13:25 -04:00
Vanessa Dannenberg
4602290bc5 Merge branch 'master' into 'master'
Change digilines detector tube to send an item table instead of an item string

See merge request VanessaE/pipeworks!18
2020-04-28 03:29:22 +00:00
Roger
64fb90f3e5 Change digilines detector tube to send an item table instead of an item string 2020-04-28 04:08:31 +01:00
Vanessa Dannenberg
99cb3a5d9d Merge branch 'fix-21' into 'master'
Translation string errors

Closes #21

See merge request VanessaE/pipeworks!17
2020-02-20 14:29:07 +00:00
Louis Royer
728d4e179a Translation string errors
Fixes #21.
Sorry, I had put wrong identifiers in translations strings.
Also, found another one to fix in `teleport_tube.lua`.

I hope, there is no other error.
2020-02-20 15:27:08 +01:00
Vanessa Dannenberg
760e9e383c Merge branch 'mt5-locale' into 'master'
French translation

See merge request VanessaE/pipeworks!16
2020-02-18 17:34:52 +00:00
Louis Royer
62bc13078f Add translation support
- Created `locale/template.txt`
- Fixed some typos
- Replace some `print("[pipeworks]"..` with `pipeworks.logger()`
- Removed "You hacker, you" from descriptions
2020-02-18 17:34:52 +00:00
Vanessa Dannenberg
84d7104c66 Merge branch 'master' into 'master'
Fix injector compatibility with technic HV machines

Closes #20

See merge request VanessaE/pipeworks!15
2020-01-14 12:35:37 +00:00
OgelGames
2ca825f991 fix injector compatibility with technic hv machines 2020-01-14 23:07:09 +11:00
Vanessa Dannenberg
0fa88b7054 Merge branch 'filter-injector-refactor' into 'master'
filter-injector.lua: eliminate most parameters from grabAndFire by making it a closure

See merge request VanessaE/pipeworks!13
2020-01-10 19:48:57 +00:00
electrodude
8f03c0e684 filter-injector.lua: Rename exact_match -> exmatch_mode
Also fixed bad conditional that would accept non-integer values of exmatch in a message.
2020-01-10 19:48:57 +00:00
Vanessa Dannenberg
75cfac34e6 add signs_lib placement rules
only works on signs_lib commit dcdee222 or later.
2019-09-23 15:41:56 -04:00
Vanessa Dannenberg
d5fe933456 use default metal sounds on all pipes and pipe devices 2019-09-23 15:40:28 -04:00