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

110 Commits

Author SHA1 Message Date
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
ShadowNinja
f2f714c19e Fix crash when loading version 3 schematics 2016-01-23 16:57:27 -05:00
Joseph Pickard
47712844a3 Added a WorldEdit wand item that can be used to select areas with worldedit. 2016-01-22 22:24:17 +01:00
Sebastien Ponce
2e2fcfdfa2 Fixed Issue #83 : upsidedown pyramid not working well 2016-01-05 14:11:04 +01:00
sfan5
e0a2661700 Fix //stack2 not working (closes #94) 2016-01-05 13:57:48 +01:00
Anthony Zhang
48f9c6c23f Fix #93 (thanks @za267!) 2015-11-01 16:50:36 -05:00
Sebastien Ponce
5f9efb1205 Added hollow pyramids 2015-09-13 22:08:04 +02:00
ShadowNinja
5c115e282c Fix existence check trying to open files for writing 2015-05-16 19:27:27 -04:00
sfan5
ab47385f7b Fix crash (worldedit/manipulations.lua:526: attempt to call global 'set_node' (a nil value)) 2015-05-04 18:48:27 +02:00
est31
09de34aabf Load first node too with LuaJIT
Before, the first node would have had the version number prepended (e.g. "5:"), and therefore wouldn't be loaded.
2015-03-12 02:40:19 +01:00
ShadowNinja
bb8456b711 Cleanup and fixup
Non-stylistic changes:
  * Add LuaDoc/LDoc support.
  * Fix `clear_objects` area size calculation.
  * Fix `clear_objects` removing player objects.
  * Fix shadowing of marker entity name with player name.
  * Make visualization functions use `swap_node`.
  * Make hidden nodes unwalkable.
  * Prevent `hide` from hiding air.
  * Make deprecated functions log to deprecated stream when called.
  * Fixed `replaceinverse` not using normalized node names.
  * Added .gitignore.
  * Bump version to 1.1.

Stylistic changes:
  * Change `x = function` to `function x`.
  * Change comment format.
  * Make  missing VoxelManip error less obnoxious.
  * Move `sort_pos` into `common.lua`, which is a required module.
  * Remove local copies of `minetest`.
  * Remove `worldedit = worldedit or {}` from modules.
  * Replace replaceinverse with an inverse argument to `replace`.
  * Added `error()`s on on invalid axes.
  * Change `wip` to `TODO`.
  * Rename `clearobjects` to `clear_objects`.
  * Remove `hollow_{sphere,dome,cylinder}` and replace them with a hollow parameter to each function.
  * Add helpers to reduce code duplication.
  * Renamed `Chat Commands.md` to `ChatCommands.md`.
2015-02-01 15:56:16 -05:00
ShadowNinja
1f277147ca Fix Lua function 2014-12-30 00:11:49 -05:00
Anthony Zhang
04fdf92aca Fix crash when loading schematic in a LuaJIT build in recent Minetest versions (thanks LazyJ & VanessaE!). 2014-12-29 18:26:37 -05:00
Anthony Zhang
7f580611f5 Fix some warnings. 2014-12-29 18:16:36 -05:00
KodexKy
5b03c83f6b Fix stack2 param
Fix stack2 amount count
Fix stack2 sign recognition for y & z
2014-12-16 02:14:22 -04:30
sfan5
e4d007199f Fix bug with loading old .we file formats, thanks to @Sokomine 2014-12-13 21:13:11 +01:00
ShadowNinja
796aa3870d Clean up serialization
* Adds a header to serialized data (to make version checking sane).
  * Removes the duplicate deserialization for `worldedit.deserialize` and `worldedit.allocate`.
  * Optimizes `worldedit.deserialize` by only deserializing the data once.
  * Makes some fields optional.
  * Cleans up the comments and a little of the code style.
2014-10-24 16:45:10 -04:00
ShadowNinja
e383e8ce00 Fix runtime error checking with lua* commands 2014-07-23 18:21:21 -04:00
Uberi
82ef580fae Add sort_pos to make code module independent. 2014-07-22 18:42:15 -04:00
Uberi
d8aa7e72a7 Oops, fix //set. 2014-07-14 00:11:33 -04:00
Uberi
58d7a7134e Coding style updates. 2014-07-12 16:35:59 -04:00
Cy
f5b67c5bc2 CPS-ifying stack
Continuation Passing Style lets me use minetest.after, so the server
gets a chance to not hang in between every stack iteration. Could even
set minetest.after(1000,nextone) if you want to see it extend once every
second.
2014-07-09 23:50:41 -07:00
Cy
6084db9335 Slight optimization to //set
Just noticed I box the one type version in a list, to avoid testing
whether it's the one type version, but have to test for that to decide
whether to box it or not. Should shave like a whole 3ms from each //set
command.
2014-07-09 23:34:27 -07:00
Uberi
b70fd16da4 Oops, fix //set. 2014-07-07 14:06:33 -04:00