From 50fdff34ec38478838fa836775a14c831093ac04 Mon Sep 17 00:00:00 2001 From: maikerumine Date: Fri, 18 Nov 2016 10:34:53 -0500 Subject: [PATCH] fix bucket place crash --- mods/bucket/init.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mods/bucket/init.lua b/mods/bucket/init.lua index 5dbc65c..4e852f5 100644 --- a/mods/bucket/init.lua +++ b/mods/bucket/init.lua @@ -252,7 +252,7 @@ minetest.register_privilege("water", "Can use liquid.") --mud bucket -local old_lava_bucket_place = minetest.registered_items["bucket:bucket_mud"].on_place +local old_mud_bucket_place = minetest.registered_items["bucket:bucket_mud"].on_place minetest.override_item("bucket:bucket_mud", { on_place = function(itemstack, placer, pointed_thing) @@ -260,7 +260,7 @@ minetest.override_item("bucket:bucket_mud", { {mud = true}) then return itemstack else - return old_lava_bucket_place(itemstack, placer, pointed_thing) + return old_mud_bucket_place(itemstack, placer, pointed_thing) end end, }) @@ -289,7 +289,7 @@ minetest.override_item("bucket:bucket_toxic_water", { {mud = true}) then return itemstack else - return old_water_bucket_place(itemstack, placer, pointed_thing) + return old_toxic_water_bucket_place(itemstack, placer, pointed_thing) end end, }) @@ -346,4 +346,4 @@ minetest.register_craft({ output = "default:steel_ingot 2", recipe = "bucket:bucket_empty", }) -]] \ No newline at end of file +]]