summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2018-08-26 23:50:00 -0400
committerVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2018-08-27 00:05:34 -0400
commit3898337fc3ae94b0657178938f491660cfb7d021 (patch)
tree851f5c2bbdef451b34eeb79ef941702b5a8fb1bb
parent088b5ee120539ae441ad2bd3a72c1d933a65dd5e (diff)
downloadunifieddyes-3898337fc3ae94b0657178938f491660cfb7d021.tar
unifieddyes-3898337fc3ae94b0657178938f491660cfb7d021.tar.gz
unifieddyes-3898337fc3ae94b0657178938f491660cfb7d021.tar.bz2
unifieddyes-3898337fc3ae94b0657178938f491660cfb7d021.tar.xz
unifieddyes-3898337fc3ae94b0657178938f491660cfb7d021.zip
don't try to match last_color to registered_items table, that breaks aliases
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index a3d71e6..6a0e464 100644
--- a/init.lua
+++ b/init.lua
@@ -639,7 +639,7 @@ function unifieddyes.on_airbrush(itemstack, player, pointed_thing)
local player_name = player:get_player_name()
local painting_with = nil
- if unifieddyes.player_current_dye[player_name] and minetest.registered_items[unifieddyes.player_current_dye[player_name]] then
+ if unifieddyes.player_current_dye[player_name] then
painting_with = unifieddyes.player_current_dye[player_name]
end