mirror of
https://github.com/Sokomine/travelnet.git
synced 2024-11-30 19:23:44 +01:00
pull request fixes
Co-Authored-By: thomasrudin <thomas@rudin.li>
This commit is contained in:
parent
4ea4a808f0
commit
1e7506f038
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user