1
0
mirror of https://github.com/Uberi/Minetest-WorldEdit.git synced 2024-12-25 02:00:39 +01:00
Commit Graph

133 Commits

Author SHA1 Message Date
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
sfan5
415000e797 Fix a few assignments to undeclared globals 2017-11-07 14:19:57 +01:00
sfan5
59dc2d34d9 WorldEdit 1.2 2017-09-12 14:56:01 +02:00
Wuzzy
3c61759bae Allow to bulk-set param2 of regions (#144) 2017-09-05 14:40:46 +02:00
sfan5
2f4eb19a3a Fix one-node high cylinders
closes #146
2017-09-03 20:12:38 +02:00
sfan5
e680d8087e Fix small logic error in worldedit.cylinder 2017-08-31 20:10:08 +02:00
sfan5
870873ad15 Add //hollowcube and //cube
closes #143
2017-08-31 19:08:10 +02:00
Kyle
bf8e2a8233 Dual-based cylinder 2017-08-31 16:25:22 +02:00
sfan5
92fe95fab7 Make //fixlight work again
The dig-air-nodes method seems to have stopped working a few Minetest version ago
2017-01-02 19:03:21 +01:00
sfan5
f9311b2b15 Move wand.lua to worldedit_commands 2016-12-10 21:54:51 +01:00
sfan5
15f0cea72e Disable wand tool on entities 2016-12-10 21:39:44 +01:00
sfan5
6e2e2385e9 Merge remote-tracking branch 'tmp/hollowpyramid' 2016-10-13 17:51:01 +02:00
sfan5
5afea424ba Move cuboidapi.lua to correct place 2016-07-04 19:57:48 +02:00