pull request fixes

Co-Authored-By: thomasrudin <thomas@rudin.li>
This commit is contained in:
HybridDog 2018-11-06 08:33:24 +01:00 committed by GitHub
parent 4ea4a808f0
commit 1e7506f038
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -82,7 +82,9 @@ minetest.register_node("travelnet:travelnet", {
local pos = pointed_thing.above;
local node_name = minetest.get_node({x=pos.x, y=pos.y+1, z=pos.z}).name
if( not node_name or not minetest.registered_nodes[node_name].buildable_to ) then
local def = minetest.registered_nodes[
minetest.get_node({x=pos.x, y=pos.y+1, z=pos.z}).name]
if not def or not def.buildable_to then
minetest.chat_send_player( placer:get_player_name(), S('Not enough vertical space to place the travelnet box!'))
return;