check has_a_tardis == false rather than if not has_a_tardis because if nil
This commit is contained in:
parent
40e94771f9
commit
1cb71610ec
@ -111,7 +111,7 @@ function drwho_tardis:register_sonic_device(def)
|
||||
if controls.sneak then
|
||||
-- sneaking
|
||||
local r_pos = user.r_pos
|
||||
if not user.has_a_tardis then
|
||||
if user.has_a_tardis == false then
|
||||
minetest.chat_send_player(id, S("You do not have a Tardis!"))
|
||||
elseif r_pos.x+50 > select_pos.x and r_pos.x-50 < select_pos.x and r_pos.z+50 > select_pos.z and r_pos.z-50 < select_pos.z and r_pos.y+50 > select_pos.y and r_pos.y-50 < select_pos.y then
|
||||
minetest.chat_send_player(id, "Your Tardis can not be summoned here!")
|
||||
|
Loading…
x
Reference in New Issue
Block a user