From 5637701c4bf80cf229705e3c07d73679cda753a2 Mon Sep 17 00:00:00 2001 From: Brandon Date: Sat, 8 Aug 2020 17:51:39 -0400 Subject: [PATCH] Correct indentation --- mods/ITEMS/mcl_potions/potions.lua | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/mods/ITEMS/mcl_potions/potions.lua b/mods/ITEMS/mcl_potions/potions.lua index cc5304d3..84a44dee 100644 --- a/mods/ITEMS/mcl_potions/potions.lua +++ b/mods/ITEMS/mcl_potions/potions.lua @@ -59,15 +59,14 @@ local function register_potion(def) local on_use = nil if def.on_use then - on_use = function (itemstack, user, pointed_thing) - def.on_use(user, def.effect, dur) - minetest.do_item_eat(0, "mcl_potions:glass_bottle", itemstack, user, pointed_thing) - mcl_potions._use_potion(itemstack, user, def.color) + def.on_use(user, def.effect, dur) + minetest.do_item_eat(0, "mcl_potions:glass_bottle", itemstack, user, pointed_thing) + mcl_potions._use_potion(itemstack, user, def.color) - return itemstack - end + return itemstack + end end local function get_tt(tt, effect, dur)