From 07f276f4f4ff81dab88a2a1f1bfba57e6538509b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20P=C3=A9rez-Cerezo?= Date: Sat, 3 Feb 2018 16:43:41 +0100 Subject: Fixed stacking bug, relicense under AGPL --- init.lua | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'init.lua') diff --git a/init.lua b/init.lua index 4f1a455..f9ec252 100644 --- a/init.lua +++ b/init.lua @@ -1,4 +1,18 @@ -- feedlot mod Copyright (C) 2017 Gabriel PĂ©rez-Cerezo +-- This program is free software: you can redistribute it and/or modify +-- it under the terms of the GNU Affero General Public License as published by +-- the Free Software Foundation, either version 3 of the License, or +-- (at your option) any later version. + +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU Affero General Public License for more details. + +-- You should have received a copy of the GNU Affero General Public License +-- along with this program. If not, see . + + local modpath = minetest.get_modpath( "feedlot" ) dofile(modpath.."/fakeplayer.lua") @@ -68,7 +82,7 @@ local tube = { end if inv:room_for_item("main", stack) and stack:get_name() ~= "bucket:bucket_empty" then - inv:set_stack("main", 1, stack) + inv:add_item("main", stack) return ItemStack(nil) else return stack -- cgit v1.2.3