98d08d01d4
Accept coordinates separated by commas and spaces
...
Co-authored-by: lumberJack <lumberjackgames@protonmail.com >
2025-06-07 14:08:16 +02:00
8cb684da30
Keep area marker when running '/area_posX' twice
...
Regression from c9f1cf2fac
2025-02-17 18:02:14 +01:00
01c261cbe4
Restore Luanti < 5.10.0 compatibility
2025-02-09 12:20:31 +01:00
733e263f86
Reduce code duplication in register_on_punchnode
...
Merges "pos1" and "pos1only" into the same code.
2024-11-05 20:17:13 +01:00
c9f1cf2fac
Prevent saving entities
...
This may add lag, but stops saving entities (which lua_api.md discourages). This also eliminates areas.markPos{1,2} (which seemed to be internal) and integrates areas:setPos{1,2} with such function.
2024-11-05 20:17:13 +01:00
9b6fea1473
fix trailing whitespace in translatable strings
...
Good editors trim trailing whitespace from EOL.
This means we need to avoid translatable strings that include spacers at
the end. They need to be added in code.
2024-09-25 20:42:09 +02:00
6fd05bc95e
trivial a -> an in comments
2024-09-25 20:42:09 +02:00
9a5cdb2822
Allow relative coordinates in /area_pos[12] ( #77 )
2024-08-07 21:33:36 +02:00
800a93f5ee
Minor cleanup
2020-06-04 20:36:12 +02:00
448fe3ebf1
Rework on messages displayed
...
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com >
2020-03-19 22:46:22 +01:00
4179917eb4
Add translation support
2020-03-19 22:46:22 +01:00
5527dc8945
Replace deprecated functions with newer ones ( #36 )
...
This commit replaces a few deprecated calls to getpos with get_pos
2019-07-10 20:26:42 +02:00
6218e5884d
Limit areas to -30992,30992 due to MABLOCK_SIZE=16
...
Internally, when allocating an AreaStore, the limits are required
to be within the last full block, and so, you cannot create one "on"
the edge, as it will trigger an exception. When limited to the last
full mapblock, it all works fine.
2019-04-03 11:10:59 -07:00
cfd4bb2423
Last of the luacheck cleanups.
2019-04-03 10:26:20 -07:00
6e2b9a0a51
Needs to be defined earlier.
2019-04-03 10:24:02 -07:00
024424ee8b
Also limit chatcommand area_pos[12] positions.
2019-04-03 10:17:47 -07:00
f70600db30
oops, commas would be nice.
2019-04-02 16:06:19 -07:00
9508a004d0
fix posLimit(pos) to process and return a position table
2019-04-02 14:53:54 -07:00
630bdefd98
Don't allow areas to cross outside mapgen world limits.
...
Limit any area to within [-31000,31000].
2019-04-01 21:28:03 -07:00
9871caf1e2
Copy positions to avaoid multiple references
2014-07-15 15:41:18 -04:00
e17cda925b
Add canInteractInArea
2014-07-12 16:37:54 -04:00
abd6a4c709
Centralize position getting and sorting
2014-05-30 17:41:41 -04:00
02905caaeb
Pass messages by return value
2014-05-29 11:04:37 -04:00
f096fb4dbb
Use table indices as IDs
...
This significantly optimizes a lot of operations and removes redundancy.
2013-11-18 21:12:09 -05:00
790ed15594
Chat command regex tweaks
2013-11-14 19:15:26 -05:00
db664d68f8
License tweaks
2013-11-14 19:11:20 -05:00
5b4cbe122f
Fix crash when using /area_pos# with invalid arguments
2013-10-29 12:38:12 -04:00
547fa726bf
Fix crash with invalid number passed to select_area
2013-09-08 20:52:20 -04:00
7b0ff512f7
Shorten lines
2013-09-03 01:33:08 -04:00
4ae050a3ae
Initial commit
2013-09-02 19:16:14 -04:00