This commit is contained in:
Zaoqi 2017-07-15 15:57:21 +08:00 committed by GitHub
parent 15e7cd83da
commit 8ea9f04adb

View File

@ -43,6 +43,7 @@ minetest.register_entity("vehicles:missile", {
local player = self.launcher
if player == nil then
self.object:remove()
return
end
local dir = player:get_look_dir();
local vec = {x=dir.x*16,y=dir.y*16,z=dir.z*16}