Commit Graph

42 Commits

Author SHA1 Message Date
FossFanatic
c0f52ad344 Fix maps to display coloured foliage and water 2023-03-04 13:47:51 +00:00
Michieal
b66e2a117f fix json reading error. 2023-02-14 01:50:05 +00:00
Johannes Fritz
8793ed211e Fix ender chest crash + remove map hand reference 2023-02-01 09:56:12 -06:00
Michieal
c4981d894c Removed the local cached copy of the built in TGA encoder. 2022-11-05 01:26:15 +01:00
Michieal
93913ed780 Fix accidental conversion of tabs to spaces. 2022-11-05 01:26:15 +01:00
Michieal
6d1b1b3c74 Added a return code to load_maps
Added a return code to load_maps to check for if dynamic_add_media registers a fail.
Used by mcl_itemframes when reloading a map placed into an itemframe.
2022-11-05 01:26:14 +01:00
Johannes Fritz
413c6292ff Add simple skins skins support 2022-09-06 12:51:43 -05:00
Johannes Fritz
8e6b6393c2 Add advanced skin customization 2022-09-06 12:16:46 -05:00
Johannes Fritz
ba55e4286f Remove image stack wieldview: code review improvment 2022-08-23 10:08:22 -05:00
Johannes Fritz
587f9be4d7 Remove image stack wieldview 2022-08-23 10:08:22 -05:00
Elias Fleckenstein
a86fc935aa mcl_maps: add callback to load_map function (#2261)
Fixes maps in itemframes not loading after restart (#2255)
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/2261
Co-authored-by: Elias Fleckenstein <eliasfleckenstein@web.de>
Co-committed-by: Elias Fleckenstein <eliasfleckenstein@web.de>
2022-05-30 01:32:20 +00:00
Nils Dagsson Moskopp
27842aa2f5 Fix handheld maps not displaying in Minetest 5.5.0
The function dynamic_add_media() was changed in incompatible ways in
several minor versions of Minetest, breaking the display of handheld
maps in Minetest 5.5.0. This patch makes handheld maps display there.

The function was blocking with one argument in Minetest 5.3. It was also
blocking in Minetest 5.4, but took an additional argument for a function
to execute once the media had been received. Calling dynamic_add_media()
with a single argument had been deprecated; a function that did nothing
was provided in mcl_maps to satisfy the changed argument requirements.

In Minetest 5.5, dynamic_add_media() was changed to non-blocking. This
introduced a race condition in mcl_maps, where a client often tried to
display a map before it had received the map texture from the server.

Opening an issue on the Minetest issue tracker led to it being closed in
about 20 minutes: <https://github.com/minetest/minetest/issues/11997>
2022-02-24 22:43:45 +00:00
AFCMS
cd33d406b2 fix many codestyle issues (functions, strings, modpaths) 2021-05-29 16:12:33 +02:00
AFCMS
9edcc60ba2 [mcl_maps] fix warnings 2021-05-22 23:21:32 +02:00
Elias Fleckenstein
5bb1657bd8 Add moving marker for the player 2021-05-03 10:46:59 +02:00
Elias Fleckenstein
f063d14caf Add craft predict for map copying 2021-05-02 19:30:27 +02:00
Elias Fleckenstein
0d287001f7 Fix tt snippet to update wield filled maps as well 2021-05-02 19:18:30 +02:00
Elias Fleckenstein
63d4e57a8d Correct typo (ninetest -> minetest) 2021-05-02 17:19:11 +02:00
Elias Fleckenstein
ecea8f1662 Prevent placing of wielded maps 2021-05-02 17:14:57 +02:00
Elias Fleckenstein
ef08977112 Copy stack before accessing it in add_item 2021-05-02 17:11:33 +02:00
Elias Fleckenstein
1f87874870 Make it look like the player is holding the map in their hand 2021-05-02 17:03:39 +02:00
Elias Fleckenstein
9a3ae17564 Make maps show their image when in itemframes 2021-05-02 16:04:48 +02:00
Elias Fleckenstein
bd74dbe321 Revert "Use PNG instead of TGA"
This reverts commit ca9cd8cbe0.
The TGA was faster and produced smaller files.
2021-05-02 13:03:18 +02:00
Elias Fleckenstein
ca9cd8cbe0 Use PNG instead of TGA 2021-05-02 12:55:04 +02:00
Elias Fleckenstein
d9a670dcb8 Show empty map in creative inv, but don't show filled map there 2021-05-02 12:24:22 +02:00
Elias Fleckenstein
f22b3fd457 Implement copying maps 2021-05-02 12:23:29 +02:00
Elias Fleckenstein
1079ab74d4 Stack filled maps that have the same metadata 2021-05-02 11:42:16 +02:00
Elias Fleckenstein
2228b30658 Add API to create filled map 2021-05-01 17:36:51 +02:00
Elias Fleckenstein
c6e80b5882 Add Real Maps 2021-05-01 16:52:16 +02:00
AFCMS
3635b848d5 add API for mcl_wip 2021-03-07 00:42:34 +01:00
Wuzzy
c106a62979 Use minetest.is_creative_enabled 2020-07-10 16:45:40 +02:00
Wuzzy
f0ba364120 Fix crash in mcl_maps 2020-03-12 06:45:23 +01:00
Wuzzy
7ee2340f5c Show chat message if using minimap incorrectly 2020-03-12 01:57:14 +01:00
Wuzzy
ba74546d48 Add extended tooltips 2020-02-19 04:54:17 +01:00
Wuzzy
77ab44217a German transl.: mcl_fishing to mcl_maps + fixes 2019-03-15 06:12:03 +01:00
Wuzzy
2e738a39a4 Disable radar mode in survival 2019-03-08 01:59:45 +01:00
Wuzzy
47c817d75a New translation system, part 8: Items, part 4 2019-03-08 00:22:28 +01:00
Wuzzy
27fa2c2e66 Clean up item categorization in creative inv. 2019-02-06 11:15:53 +01:00
Wuzzy
e789801662 Replace getpos() with get_pos() 2019-02-01 06:33:07 +01:00
Wuzzy
8dcb015182 Allow minimap for free in Creative Mode 2017-08-31 14:59:16 +02:00
Wuzzy
506cc00dc6 Add map help 2017-03-10 03:46:02 +01:00
Wuzzy
22c5f0f41e Add a map imitation
The map item just enables the minimap. It's pretty overpowered at the moment.
2017-02-20 00:51:28 +01:00