mirror of
https://github.com/mt-mods/unifieddyes.git
synced 2025-07-26 04:00:21 +02:00
Compare commits
2 Commits
878377301f
...
36c8bb5f5b
Author | SHA1 | Date | |
---|---|---|---|
36c8bb5f5b | |||
96a939c069 |
@ -455,14 +455,13 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||
return
|
||||
end
|
||||
else
|
||||
local s1 = string.sub(minetest.serialize(fields), 11)
|
||||
local s3 = string.sub(s1,1, string.find(s1, '"')-1)
|
||||
local color, _ = next(fields)
|
||||
|
||||
local inv = player:get_inventory()
|
||||
local creative = minetest.is_creative_enabled(player_name)
|
||||
local dye = "dye:"..s3
|
||||
local dye = "dye:"..color
|
||||
|
||||
if (showall or unifieddyes.palette_has_color[nodepalette.."_"..s3]) and
|
||||
if (showall or unifieddyes.palette_has_color[nodepalette.."_"..color]) and
|
||||
(creative or inv:contains_item("main", dye)) then
|
||||
unifieddyes.player_selected_dye[player_name] = dye
|
||||
unifieddyes.show_airbrush_form(player)
|
||||
|
Reference in New Issue
Block a user