From 81d7d65bed06c784123d47eb89674a7ebd685338 Mon Sep 17 00:00:00 2001 From: D00Med Date: Wed, 26 Oct 2016 16:37:46 +1000 Subject: [PATCH] fix for shiny potion --- init.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/init.lua b/init.lua index be2cf3c..a4df1c8 100644 --- a/init.lua +++ b/init.lua @@ -3524,8 +3524,7 @@ minetest.register_node("witchcraft:potion_gold_2", { sounds = default.node_sound_glass_defaults(), inventory_image = "witchcraft_potion_gold.png^[colorize:black:50", on_use = function(item, user, pointed_thing) - local player = user:get_player_name() - lightchange(player, 10) + lightchange(user, 10) local playerpos = user:getpos(); minetest.add_particlespawner( 5, --amount