sfan5
5a00c07c68
Add forgotten file include
...
fixes: acb3ecefe4
2024-04-29 09:56:01 +02:00
HybridDog
cda772b18d
Add a hollowcuboid iteration helper ( #190 )
2024-04-23 20:35:26 +02:00
sfan5
456ce8c800
Add tests for (hollow)cube
2024-04-22 19:16:04 +02:00
sfan5
60b6b205ad
Add nil checks around get_player_by_name()
...
in case someone uses the commands from ncurses
2024-04-22 18:10:30 +02:00
sfan5
acb3ecefe4
Split up some files in worldedit mod
2024-04-22 00:01:31 +02:00
sfan5
860d4a267d
Some fixes to tests
2024-04-20 20:39:34 +02:00
sfan5
372847e774
Add tests for worldedit.lua/luatransform
2024-04-20 20:39:34 +02:00
imre84
883caff58d
Make //lua work with expressions as well ( #243 )
2024-04-20 20:00:41 +02:00
sfan5
602f175cc0
Make use of minetest.load_area
2024-04-20 14:03:37 +02:00
sfan5
a713efe051
Fix wand tool causing pos1/pos2 aliasing
...
fixes #245
2024-04-20 13:02:23 +02:00
luk3yx
469c3bf70b
Ignore unknown nodes when loading in saves
2024-04-16 11:35:19 +02:00
fluxionary
f75700ed76
Make //clearobjects remove unknown objects ( #244 )
2024-03-30 00:17:51 +01:00
sfan5
41efbaf210
Migrate tests to new Docker image
2024-03-25 16:48:09 +01:00
sfan5
1fc6d93112
Move worldedit_wand.png to correct place
2023-10-28 11:34:42 +02:00
sfan5
8f60e6f729
Fix clear_objects not working
2023-10-08 18:21:15 +02:00
nauta-turbidus
b4202ea779
Trim trailing content when obtaining dedicated_server_step
...
This change trims anything starting with the first space from dedicated_server_step, including single-line comments following the configured value specifically, before using it for calculations. It fixes compatibility-breaking crashes with some mods/games, which change the mentioned value by adding a comment after it. Such a comment is, as far as I know, syntactically valid, and is accepted by the engine it seems.
2023-08-06 14:05:34 +02:00
HybridDog
689ff90a78
Remove unused variables and assignments
2023-06-19 18:24:31 +02:00
HybridDog
375fbf3c68
Remove trailing whitespaces
2023-06-09 19:51:10 +02:00
HybridDog
cc3aab00bc
Fix tab after space indentations
2023-06-09 19:51:10 +02:00
HybridDog
099d5047bd
Fix undefined variable access in worldedit.metaload
...
`file` in the deprecated `worldedit.metaload` function was undefined, as reported by luacheck.
2023-06-09 19:47:31 +02:00
sfan5
7f7e928dd9
Switch bare vectors to vector.new()
2023-06-09 14:49:58 +02:00
sfan5
7a5d76a9bc
Add comprehensive schematic deserialization unit tests
2023-06-09 13:02:37 +02:00
sfan5
5260f595c6
Log deserialization errors
2023-06-07 11:50:33 +02:00
sfan5
abc9efeeb8
Harden deserialize workaround against unexpected input
...
Otherwise it will stop working entirely soon when the
serialization inside Minetest is reworked.
This allows it to work at least in the cases where the original
bug (LuaJIT register limit) doesn't apply.
2022-06-06 20:39:15 +02:00
sfan5
770601dd5d
Add automated tests for WorldEdit API functions that run under CI
...
uses a real Minetest instance (Docker)
currently covers most basic manipulations
2021-09-20 23:10:04 +02:00
sfan5
2f2f5a7def
Use minetest.global_exists for LuaJIT check
...
closes #199
2021-09-12 19:35:57 +02:00
sfan5
4378750498
Use minetest.get_objects_in_area when possible
2021-04-30 19:33:27 +02:00
sfan5
2f26fb7645
WorldEdit 1.3
2021-01-31 00:49:58 +01:00
sfan5
2f535dd053
worldedit: Document inner working of worldedit.keep_loaded
2020-05-25 19:48:54 +02:00
sfan5
9b26034aea
Move worldedit.marker_update
...
Markers are part of the UI (`worldedit_chatcommands`) and do not belong in `worldedit`.
2020-04-07 00:14:31 +02:00
sfan5
da51c688d2
Call minetest.deserialize with safe=true
...
wtf?
2020-02-06 11:53:14 +01:00
sfan5
ab93871877
Move some deserialization code around
2020-02-06 11:51:44 +01:00
sfan5
8feaf8a21d
Fix area clearing step of negative //move's
...
fixes #187
2019-11-13 20:49:25 +01:00
sfan5
b4826aa821
Use faster vmanip copying for //move too
2019-09-17 18:42:11 +02:00
sfan5
a0181ea897
Delete old metadata when moving regions
...
This matches the behaviour before introduction of the vmanip code.
2019-09-17 18:03:19 +02:00
sfan5
2a4aaae8a2
Always use faster vmanip copying code
...
Since the code has two arrays of the area before and after,
the copy order is totally irrelevant.
Of course, this doesn't apply to metadata and we still need
to do that backwards.
2019-09-17 01:28:53 +02:00
sfan5
f6298d7b87
Fix schematics with extra headers to parse properly
...
Currently no schematic format makes use of these, but that
may change so do some future proofing.
2019-09-09 20:52:15 +02:00
sfan5
cc897150f2
Fix performance of //stack, //stack2
2019-09-08 22:14:07 +02:00
sfan5
f39a8e264d
Faster moving using vmanips (in some cases)
2019-09-08 22:14:07 +02:00
sfan5
da5abec273
Faster copying using vmanips
2019-09-08 22:14:07 +02:00
sfan5
ff53a71d58
Remove outdated function check
2019-09-08 18:57:54 +02:00
sfan5
b8453a0e0b
Remove deprecated depends.txt, add descriptions to mod.conf
2019-07-17 02:15:04 +02:00
Panquesito7
3ffecdd9c4
Replace deprecated functions with newer ones
...
These commits create compatibility with MT/MTG 5.0.0+.
However, these commits may/will break with the 0.4-series.
2019-07-17 01:23:40 +02:00
Niwla23
40b49ee9bc
Make placeholders not pointable
2019-07-17 01:22:12 +02:00
sfan5
4f2c7b18cc
Fix //allocate with 0 nodes
2019-07-17 01:20:40 +02:00
TalkLounge
b2e086f9ec
Fix //load with 0 nodes ( #177 )
2019-06-15 16:46:12 +02:00
HybridDog
d1cbd420bb
serialize: Fix detecting empty metadata ( #176 )
2019-04-24 22:51:18 +02:00
Pedro Gimeno
0aeee79af6
Implement full facedir and color* in //orient
...
Thanks to entuland for the Rhotator facedir to matrix and matrix to facedir code, which helped creating the tables.
2019-04-05 00:12:02 +02:00
Isidor Zeuner
f8e57559ec
replace deprecated function call
2018-11-25 13:46:27 +01:00
sfan5
3322ef90c4
Fix negative height pyramids ( fixes #152 )
2018-01-04 01:03:51 +01:00