diff options
author | Vanessa Dannenberg <vanessa.e.dannenberg@gmail.com> | 2018-08-26 23:50:00 -0400 |
---|---|---|
committer | Vanessa Dannenberg <vanessa.e.dannenberg@gmail.com> | 2018-08-27 00:05:34 -0400 |
commit | 3898337fc3ae94b0657178938f491660cfb7d021 (patch) | |
tree | 851f5c2bbdef451b34eeb79ef941702b5a8fb1bb | |
parent | 088b5ee120539ae441ad2bd3a72c1d933a65dd5e (diff) | |
download | unifieddyes-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.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |