7f277db7ac
Optimize openfarming check
2025-03-20 00:08:37 +01:00
b129fb9494
Merge remote-tracking branch 'upstream/master'
2025-03-19 19:37:57 +01:00
SmallJoker
8cb684da30
Keep area marker when running '/area_posX' twice
...
Regression from c9f1cf2fac054
2025-02-17 18:02:14 +01:00
SmallJoker
01c261cbe4
Restore Luanti < 5.10.0 compatibility
2025-02-09 12:20:31 +01:00
1F616EMO
733e263f86
Reduce code duplication in register_on_punchnode
...
Merges "pos1" and "pos1only" into the same code.
2024-11-05 20:17:13 +01:00
1F616EMO
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
1F616EMO
359280a353
Localize areas.startTime
...
startTime is not used anywhere else, so localizing it makes sense and saves memory.
2024-11-05 20:17:13 +01:00
1F616EMO
79e799cfa1
Move areas:save() into async
...
On newer Minetest servers, handles saving jobs in async environment. To prevent conflicts, the save file is locked whie saving, and if a code requests saving while the file is locked, data is saved again immediately after finishing the current save.
2024-11-05 20:17:13 +01:00
1F616EMO
ec77a57f42
Stop reusing holes in areas IDs
...
This eliminates the need of iterating the whole list for every protection operations. Note that the highest index isn't cached, i.e. the first or few (if there are many holes) operations would still suffer from the lag.
2024-11-05 20:17:13 +01:00
Luke aka SwissalpS
d2b227eca6
Make smallest area concept optional ( #80 )
...
This restores the behaviour to before #79 .
2024-10-01 17:54:47 +02:00
Luke aka SwissalpS
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
Luke aka SwissalpS
3f30886972
add German locale
2024-09-25 20:42:09 +02:00
Luke aka SwissalpS
a38915f241
overhaul French locale
...
- Use more informal tone, this is a game not a business meeting.
- Add missing entry about version upgrade
2024-09-25 20:42:09 +02:00
Luke aka SwissalpS
55594b65d8
add Spanish locale
2024-09-25 20:42:09 +02:00
Luke aka SwissalpS
6fd05bc95e
trivial a -> an in comments
2024-09-25 20:42:09 +02:00
2184118a4b
Fix crash
2024-09-15 23:09:05 +02:00
0c9815460a
Merge remote-tracking branch 'upstream/master'
2024-09-15 08:24:21 +02:00
Luke aka SwissalpS
c2e3d073be
Use smallest area at given position ( #79 )
...
When checking for permission to interact, currently the smallest id takes precedence in a situation where areas enclose other areas. This makes it complicated to set up private areas within faction areas and vice versa. Same applies for open areas within a bigger private area.
When multiple areas have the same volume, players seem to agree that the most recently protected area should also take precedence.
Since we can't guarantee that the largest id is the most recent, we still use that info as we have no other way to determine age.
2024-09-11 22:00:47 +02:00
1F616EMO~nya
9a5cdb2822
Allow relative coordinates in /area_pos[12] ( #77 )
2024-08-07 21:33:36 +02:00
1F616EMO~nya
9024be24eb
Fix deprecated hud_elem_type field warning ( #78 )
...
Co-authored-by: cx384 <cx384@proton.me>
2024-07-17 18:18:21 +02:00
Alexander Chibrikin
2deb6770f4
Add russian translation ( #68 )
...
* Add ru locale.
* Fixed review remarks
---------
Co-authored-by: ssdaniel24 <bo7oaonteg2m@mail.ru>
2024-06-13 17:26:00 +02:00
tour
0bad0ec0ae
Allow custom checks before allowing a player to protect new areas ( #74 )
2024-03-22 22:26:12 +01:00
SmallJoker
c044d49d21
Short summary print in /list_areas for admins ( #72 )
2024-02-24 11:46:45 +01:00
1F616EMO~nya
2c900ef2cd
zh_TW and zh_CN translation ( #71 )
2024-02-15 18:35:43 +01:00
fluxionary
f4bb8eb29b
Include the endpoint position in the area size check ( #70 )
2024-02-09 21:25:23 +01:00
2fda1adbd7
Merge remote-tracking branch 'upstream/master'
2023-11-22 23:04:43 +01:00
Niklp
cba647225c
Add missing placeholder in French translation ( #66 )
2023-08-28 12:22:40 +02:00
fluxionary
c8cf4aba92
Fix orthography (it's -> its) ( #65 )
2023-08-26 11:40:59 +02:00
64b19c2594
Merge remote-tracking branch 'upstream/master'
2023-06-04 23:07:43 +02:00
fluxionary
d464d3484f
Fix chat command typo ( #64 )
2022-11-07 19:59:25 +01:00
a8cacee8cc
Fixed a minor bug introduced when I created openfarming, which skips the faction test if an area is openfarming.
...
And not return false if not a player(ie:mobs api) or unknown node, continue iterate on others areas(minor bug, generaly if 1 area it's protected).
2022-07-09 02:49:12 +02:00
76f8ccf8ab
Add morefarming and improve farming support on openfarming areas
2020-10-14 22:33:09 +02:00
02b23b0371
Merge remote-tracking branch 'upstream/master'
2020-09-08 18:45:48 +02:00
Louis Royer
4018c0d204
Add privilege translations and update translations ( #49 )
...
+ Add new french translation strings
2020-09-07 17:47:18 +02:00
Kalio_42
c167b30ebf
Adapt to the new version of playerfactions ( #48 )
...
Enable to open an area to many factions
Update to adapt to the new version of playerfactions mod, with its new multi-faction mode
2020-09-05 18:49:17 +02:00
4eeb2a9d11
Merge remote-tracking branch 'upstream/master'
2020-08-29 20:29:29 +02:00
luk3yx
a9c05f0e38
Use JSON to store areas ( #47 )
...
This works around a limit of ~21000 areas because of limits in 'minetest.deserialize()'. Files will be migrated to the new format on first change.
2020-08-28 12:54:48 +02:00
99408df96a
Delete unused textures
nalc-1.2.0
2020-07-05 17:10:03 +02:00
42cde6a494
Merge branch 'nalc-1.2-dev'
2020-07-05 17:02:34 +02:00
e0783cf8bf
Corrige crash au démarrage
2020-06-15 01:10:47 +02:00
0b2baacb92
Merge remote-tracking branch 'upstream/master' into nalc-1.2-dev
2020-06-14 23:38:20 +02:00
Hamlet
142a723eb2
Add Italian translation ( #45 )
2020-06-14 18:59:48 +02:00
Buckaroo Banzai
66bd6a9b1d
Add luacheck CI and drop node_ownership remnants ( #44 )
...
`node_ownership` is long dead, and pollutes the global namespace. Support dropped after ~7 years.
Co-authored-by: BuckarooBanzay <BuckarooBanzay@users.noreply.github.com>
2020-06-08 21:52:11 +02:00
MoNTE48
aa3e35acbe
/areas_cleanup for removing ownerless areas
2020-06-04 20:36:12 +02:00
MoNTE48
800a93f5ee
Minor cleanup
2020-06-04 20:36:12 +02:00
Louis Royer
448fe3ebf1
Rework on messages displayed
...
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
2020-03-19 22:46:22 +01:00
Louis Royer
2f4eddd324
Add french translation
2020-03-19 22:46:22 +01:00
Louis Royer
4179917eb4
Add translation support
2020-03-19 22:46:22 +01:00
54c504fa0d
[areas] Remet le HUD comme avant la modif du feae996
2019-12-30 01:02:36 +01:00
26d6f56485
Ajoute description privilège \"megabuilder\" pour admins d'areas
2019-12-28 15:26:21 +01:00