From c8644ce561d3ee4a06d931f05913fd8935cffbee Mon Sep 17 00:00:00 2001 From: zaoqi Date: Fri, 27 Jan 2017 14:23:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=BD=BD=E5=85=B7=E8=A2=AB?= =?UTF-8?q?=E6=8D=A1=E8=B5=B7=E6=97=B6=E4=B8=8D=E4=BC=9Avehicles.object=5F?= =?UTF-8?q?detach?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/api.lua b/api.lua index 41f23f9..5903fc6 100644 --- a/api.lua +++ b/api.lua @@ -531,6 +531,7 @@ function vehicles.on_punch(self, puncher) local name = self.object:get_luaentity().name local pos = self.object:getpos() minetest.env:add_item(pos, name.."_spawner") + vehicles.object_detach(self, self.driver, {x=1, y=0, z=1}) self.object:remove() end end