master
Zaoqi 2020-01-06 14:35:06 +08:00 committed by GitHub
parent 8f3c52271f
commit ecbb9f6cd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ local function missile_bullet_hit_check(self, obj, pos)
local if_return = false
for _, obj in ipairs(minetest.get_objects_inside_radius({x=pos.x,y=pos.y,z=pos.z}, 2)) do
function no_launcher_or_not_attched()
local b1, b2 = pcall(function() return obj ~= self.launcher:get_attach())
local b1, b2 = pcall(function() return obj ~= self.launcher:get_attach() end)
if not b1 then
return true -- no launcher
else