Commit Graph

258 Commits

Author SHA1 Message Date
Anthony Zhang
3d30588a68 Clarify //deleteblocks 2015-12-18 17:33:29 -05: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
Anthony Zhang
fc037e9c82 Fix formspec typo causing crashing upon using /orient in the GUI. 2015-06-18 18:14:45 -04:00
ShadowNinja
90d6b3d237 Allow more characters in file names 2015-06-01 17:08:43 -04:00
ShadowNinja
4bd5d56909 Localize mkdir helper 2015-06-01 16:53:03 -04:00
ShadowNinja
163dffccb3 Fix leaking {safe,check}_region 2015-05-16 19:52:48 -04:00
ShadowNinja
6b2fe397e6 Use minetest.mkdir when available 2015-05-16 19:46:33 -04: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
Anthony Zhang
78915d4a54 Merge pull request #76 from est31/fixserialisation
Load first node too with LuaJIT
2015-03-11 22:08:32 -04: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
Anthony Zhang
c1bd4986b0 Merge pull request #74 from est31/deleteblocks
Add //deleteblocks command
2015-02-21 00:42:05 -05:00
est31
bea38a116a Add //deleteblocks command 2015-02-20 22:30:34 +01:00
Anthony Zhang
4336e7ca14 Merge pull request #73 from est31/hidebutton
Make inventory++ hide button for players without worldedit priv
2015-02-16 19:58:59 -05:00
est31
eca54f0851 Make inventory++ hide button for players without worldedit priv 2015-02-16 23:05:18 +01:00
Anthony Zhang
b0fbcf197f Merge pull request #72 from HybridDog/globalfix
fix an error message
2015-02-14 23:25:20 -05:00
HybridDog
b468e24a20 fix an error message 2015-02-14 23:10:21 +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
Anthony Zhang
4799068551 Merge pull request #68 from KodexKy/stack2_fix
Fix stack2 param
2014-12-29 17:51:51 -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
sfan5
fb49cc4bcc Revert "Use "we-" prefix for commands"
This is currently being discussed, see #62.
This reverts commit 1024eace6f.
2014-10-25 07:53:20 +02:00
Anthony Zhang
eb88bf6ade Merge pull request #61 from ShadowNinja/cleanup-serialization
Clean up serialization
2014-10-24 22:03:31 -04:00
Anthony Zhang
02c36c16d5 Merge pull request #62 from ShadowNinja/command-prefix
Use "we-" prefix for commands
2014-10-24 17:04:00 -04: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
1024eace6f Use "we-" prefix for commands 2014-10-24 16:09:51 -04:00
Uberi
70c24c9501 Fix #57 (thanks Zeno-!). 2014-08-15 19:23:23 -04:00
Uberi
18efe50e1e Fix typo (thanks donat-b!). 2014-08-05 18:34:43 -04:00
Anthony Zhang
44c9576f8a Merge pull request #53 from ShadowNinja/fix-lua-runtime-error
Fix runtime error checking with lua* commands
2014-07-24 11:19:13 -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
38fbc0a046 Fix //mix and improve normalize_nodename. 2014-07-18 16:09:57 -04:00
Uberi
4b178bf709 Rename the randomized //set to //mix, style update, document changes. 2014-07-18 15:51:09 -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
Anthony Zhang
420655bd94 Merge pull request #51 from cyisfor/master
I think that's the optimization you mentioned?
2014-07-12 16:31:27 -04:00
sfan5
ea84eee0e5 Fix typo in README 2014-07-12 07:42:38 +02:00
Uberi
9ec1a799d8 Fix worldedit_gui not working in Minetest 0.4.10. 2014-07-10 20:17:12 -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
Uberi
9616c7d944 Update stack2 API documentation. 2014-07-06 19:59:56 -04:00
Uberi
175ac211ca Documentation for //stack2, code style fixes, add author section to README. 2014-07-06 19:42:02 -04:00
Anthony Zhang
b32aadd7fa Merge pull request #47 from cyisfor/master
Stacking in any direction
2014-07-06 19:11:23 -04:00
Cy
c22b556511 Improved stacking
This stack / copy uses a direction vector, so it's not limited to only
along the X/Y/Z axis, and can go diagonally. This enables things like
building staircases.
2014-06-30 16:14:14 -07:00
Cy
174416b010 Randomized set
Can /set node node2 node3 and it will randomly choose between those
three.
2014-06-30 16:13:44 -07:00