1
0
mirror of https://github.com/Uberi/Minetest-WorldEdit.git synced 2025-06-28 14:16:18 +02:00
Commit Graph

127 Commits

Author SHA1 Message Date
cc3aab00bc Fix tab after space indentations 2023-06-09 19:51:10 +02:00
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
7f7e928dd9 Switch bare vectors to vector.new() 2023-06-09 14:49:58 +02:00
7a5d76a9bc Add comprehensive schematic deserialization unit tests 2023-06-09 13:02:37 +02:00
5260f595c6 Log deserialization errors 2023-06-07 11:50:33 +02:00
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
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
2f2f5a7def Use minetest.global_exists for LuaJIT check
closes #199
2021-09-12 19:35:57 +02:00
4378750498 Use minetest.get_objects_in_area when possible 2021-04-30 19:33:27 +02:00
2f26fb7645 WorldEdit 1.3 2021-01-31 00:49:58 +01:00
2f535dd053 worldedit: Document inner working of worldedit.keep_loaded 2020-05-25 19:48:54 +02:00
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
da51c688d2 Call minetest.deserialize with safe=true
wtf?
2020-02-06 11:53:14 +01:00
ab93871877 Move some deserialization code around 2020-02-06 11:51:44 +01:00
8feaf8a21d Fix area clearing step of negative //move's
fixes #187
2019-11-13 20:49:25 +01:00
b4826aa821 Use faster vmanip copying for //move too 2019-09-17 18:42:11 +02:00
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
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
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
cc897150f2 Fix performance of //stack, //stack2 2019-09-08 22:14:07 +02:00
f39a8e264d Faster moving using vmanips (in some cases) 2019-09-08 22:14:07 +02:00
da5abec273 Faster copying using vmanips 2019-09-08 22:14:07 +02:00
ff53a71d58 Remove outdated function check 2019-09-08 18:57:54 +02:00
b8453a0e0b Remove deprecated depends.txt, add descriptions to mod.conf 2019-07-17 02:15:04 +02:00
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
40b49ee9bc Make placeholders not pointable 2019-07-17 01:22:12 +02:00
4f2c7b18cc Fix //allocate with 0 nodes 2019-07-17 01:20:40 +02:00
b2e086f9ec Fix //load with 0 nodes (#177) 2019-06-15 16:46:12 +02:00
d1cbd420bb serialize: Fix detecting empty metadata (#176) 2019-04-24 22:51:18 +02:00
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
f8e57559ec replace deprecated function call 2018-11-25 13:46:27 +01:00
3322ef90c4 Fix negative height pyramids (fixes #152) 2018-01-04 01:03:51 +01:00
415000e797 Fix a few assignments to undeclared globals 2017-11-07 14:19:57 +01:00
59dc2d34d9 WorldEdit 1.2 2017-09-12 14:56:01 +02:00
3c61759bae Allow to bulk-set param2 of regions (#144) 2017-09-05 14:40:46 +02:00
2f4eb19a3a Fix one-node high cylinders
closes #146
2017-09-03 20:12:38 +02:00
e680d8087e Fix small logic error in worldedit.cylinder 2017-08-31 20:10:08 +02:00
870873ad15 Add //hollowcube and //cube
closes #143
2017-08-31 19:08:10 +02:00
bf8e2a8233 Dual-based cylinder 2017-08-31 16:25:22 +02:00
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
f9311b2b15 Move wand.lua to worldedit_commands 2016-12-10 21:54:51 +01:00
15f0cea72e Disable wand tool on entities 2016-12-10 21:39:44 +01:00
6e2e2385e9 Merge remote-tracking branch 'tmp/hollowpyramid' 2016-10-13 17:51:01 +02:00
5afea424ba Move cuboidapi.lua to correct place 2016-07-04 19:57:48 +02:00
f2f714c19e Fix crash when loading version 3 schematics 2016-01-23 16:57:27 -05:00
47712844a3 Added a WorldEdit wand item that can be used to select areas with worldedit. 2016-01-22 22:24:17 +01:00
2e2fcfdfa2 Fixed Issue #83 : upsidedown pyramid not working well 2016-01-05 14:11:04 +01:00
e0a2661700 Fix //stack2 not working (closes #94) 2016-01-05 13:57:48 +01:00
48f9c6c23f Fix #93 (thanks @za267!) 2015-11-01 16:50:36 -05:00
5f9efb1205 Added hollow pyramids 2015-09-13 22:08:04 +02:00