1
0
mirror of https://github.com/mt-mods/unifieddyes.git synced 2025-06-28 06:20:36 +02:00

288 Commits

Author SHA1 Message Date
3fc82f9245 Add zh_CN translation (#24) 2025-06-16 07:16:56 +02:00
82f026fc7e Replace depracated use_texture_alpha boolean value with "opaque"... (#22)
...for newer servers
2025-01-09 07:01:00 +01:00
de6e2e0e35 Fix nil crash when calling unifieddyes.on_dig() w/o PlayerRef (#21) 2024-04-19 15:41:56 +02:00
3e45f316a3 coloured nodes aren't ground content (#19) 2024-03-07 07:14:22 +01:00
ecd05bfd90 Bump min_minetest_version to "5.5.0" (#17)
closes #16
2023-11-27 22:04:35 +11:00
5af9254c3a fix logic of unifieddyes.on_dig to conform w/ documentation (#15) 2023-11-23 17:05:42 +01:00
36c8bb5f5b fix https://github.com/mt-mods/unifieddyes/issues/11#issuecomment-1469934442 - syntac formating for translation files(remove whitespace) - make wuzzy happy 2023-03-15 22:11:08 -07:00
96a939c069 Airbrush: Fix dye selection by not relying on internal behaviour of minetest.serialize (#10) 2022-09-11 11:49:23 +02:00
878377301f respect the shift click convention and fix unreachable if else(if) tree 2022-05-29 10:29:47 -04:00
2af4f1fb98 Revert "workaround for engine bug in crafting, placing, digging items with a palette index of 0"
This reverts commit eb5610fc10.
2022-05-07 16:50:23 +10:00
c079888023 workaround patch for https://github.com/minetest-mods/i3/issues/68 closes https://github.com/mt-mods/unifieddyes/issues/7 2022-04-23 22:37:55 -04:00
ed895734f2 fix luacheck error 2022-04-15 17:58:13 -04:00
26994e39f2 fix https://github.com/mt-mods/unifieddyes/issues/6 2022-03-29 23:01:55 -04:00
41dd54d1be Merge pull request #5 from mt-mods/luacheck
make game agnostic, add luacheck, add github actions
2022-02-24 11:19:01 -05:00
608c80662a patch broken colors in airbrush and bump min to 5.3.0 2022-02-23 22:37:58 -05:00
934ac7180b make it game agnostic 2022-02-22 22:15:16 -05:00
62526b9a3b add luacheck 2022-02-22 22:07:53 -05:00
521b73d4ed update api link 2022-02-22 21:44:39 -05:00
ff3b2d30fa Fix right-click crash on unknown nodes 2021-04-20-1 2021-04-20 12:30:39 -04:00
7de142dd34 fix airbrush not showing color picker dialog
when doing sneak + right-click on a node which has a formspec
in its metadata.

Right-clicking any node without a formspec in its meta will
trigger the color picker as usual, without holding sneak.

This also makes the "use this thing's color" feature use aux1
+ right-click on most nodes, when it was sneak + right-click
before.

On a node with a formspec in its meta, the engine will
intercept the right-click before UD can see it, but then drop
back to UD if the user is holding sneak, so to pick the color
of one of these nodes, use sneak + aux1 + right-click.

(on my setup, sneak is bound to "Shift", aux1 is "E").
2021-03-26-1
2021-03-26 03:27:36 -04:00
734d411e7a split init.lua into multiple files by category 2021-03-26 03:18:39 -04:00
6873ad372a Merge branch 'translatable-color-string' into 'master'
Fix translatability of colornames

See merge request VanessaE/unifieddyes!9
2021-01-30
2021-01-13 09:40:16 +00:00
71a35d4d87 Fix translatability of colornames 2021-01-13 09:40:16 +00:00
f298584761 Merge branch 'more-translation-german' into 'master'
Add more german translation

See merge request VanessaE/unifieddyes!8
2021-01-13 09:35:43 +00:00
ba7fa97af1 add more german translation 2021-01-13 08:34:16 +01:00
eb5610fc10 workaround for engine bug in crafting, placing, digging
items with a palette index of 0

(see https://github.com/minetest/minetest/issues/10687 )
2020-12-02
2020-12-02 09:42:33 -05:00
30c55bec6d Merge branch 'airbrush_on_place' into 'master'
Allows the airbrush to be placed into itemframes from homedecor

See merge request VanessaE/unifieddyes!7
2020-08-21 01:36:51 +00:00
e2c35e6694 Allows the airbrush to be placed into itemframes from homedecor 2020-08-21 03:27:13 +02:00
c91c68e0f5 Merge branch '6-move_item_crash' into 'master'
fix(bug):fix for a rare crash due to on_dig callback by non-player.

Closes #6

See merge request VanessaE/unifieddyes!6
2020-07-09 16:19:35 +00:00
09f95729c5 fix(bug):fix for a rare crash due to on_dig callback by non-player. 2020-07-09 12:05:10 -04:00
71d7e3c954 add minimum minetest version key for contentdb 20200603-1302 2020-06-03 13:00:38 -04:00
17e87a8162 add sanity checks for when what should be a player/digger is nil 2020-05-10 18:41:17 -04:00
b55c87411d Merge branch 'mt5-locales' into 'master'
Use mt5 translation api

See merge request VanessaE/unifieddyes!5
2020-02-16
2020-02-14 02:24:50 +00:00
2d13513de0 Use mt5 translation api
This allow client side translation.

I also enabled translation on Dye Airbrush interface and added
`basic_materials` to `depends` since it is used for Dye Airbrush craft
(but, it could be moved to `optional_depends` if we check mod is loaded
to register craft).
2020-02-13 19:57:05 +01:00
c6883a8300 Merge branch 'fix_drop_fix' into 'master'
prevent crash when dropping item

See merge request VanessaE/unifieddyes!3
2019-09-22-4
2019-09-23 01:49:50 +00:00
22dc40cacc prevent crash when dropping item 2019-09-23 01:49:50 +00:00
9271f07f12 fix incorrect drop behavior when stipping bogus color
in the case of full inv.

Should be the same as normal Minetest behavior now:

In survival mode, the node is deleted, then:

* If there is room in your inv, you get whatever the node
  would normally give you.

* If there's no room, the node drops to the ground as an item
  entity.

In creative mode, the node is deleted, then:

* If you don't already have one of the item, you get one.

* If you already have one, or if there's no room in your
  inventory, "you'll get nothing and LIKE it!" :-)

Also: made sure to check for creative priv as well as proper
creative mode.
2019-09-15-3
2019-09-15 23:57:58 -04:00
0082b1513a remove an obsolete function reference 2019-07-20 04:29:31 -04:00
d59ccd3298 document the new on_dig function 2019-07-20 04:28:53 -04:00
9ff40a7fe6 Add a helper function to reset a node's/item's color info
if a neutral node somehow ends up with different itemstack
meta when placed and then later dug.  Prevents look-alike stacks.
2019-07-18-1
2019-07-18 02:00:56 -04:00
e048da9c3c remove mentions of on_construct
(outdated, no longer valid or necessary)
2019-07-07 15:53:03 -04:00
6c8a0b2387 Add Russian translations 2019-06-26 10:27:48 -04:00
10ab87bf65 prevent crash in setting sky color
if get color from name return nil
2019-05-25
2019-05-25 04:14:12 -04:00
f59c8affc1 Merge branch 'master' into 'master'
Fixed yield for crafted dyes.

See merge request VanessaE/unifieddyes!2
2019-02-07 15:19:47 +00:00
667bce80b9 Fixed yield for crafted dyes.
Fix a bug that caused multiple inconsistent recipes to appear
(identical dye resources gave different dye output quantity).

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2019-02-07 10:08:04 +01:00
5039a8ce07 Merge branch 'patch-1' into 'master'
Fix numbers relating to greys

See merge request VanessaE/unifieddyes!1
2018-12-16 00:09:21 +00:00
13a8cbb38f Some of the numbers relating to greys are used inconsistently, making three of the palette colours unreachable. This bug patch fixes the numbers and restores full usability of the palette. 2018-12-15 10:53:35 +00:00
58dd71e561 Add function to get the hex color from a dye name
(oh, and https://www.youtube.com/watch?v=OEVFbrEv83w too)
2018-12-03
2018-12-01 17:59:00 -06:00
1fd850d37c change airbrush recipe
to 1 brass ingot, 2 steel ingots, and 1 plastic sheet
2018-11-23
2018-11-23 10:38:05 -05:00
334de564fd fix crash
when trying to airbrush unknown nodes or nodes without palettes.
2018-11-09
2018-10-19 16:00:05 -04:00