Apply suggestions from code review

This commit is contained in:
Hugo Locurcio 2020-08-10 22:50:06 +02:00 committed by GitHub
parent 73f914b2cb
commit e02d9977ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,7 @@ local S = maptools.S
maptools.creative = maptools.config["hide_from_creative_inventory"]
local function register_node(name, def)
-- Increase the interaction range when holding Map Tools nodes to make building easier.
def.range = 12
def.stack_max = 10000
def.drop = ""
@ -20,6 +21,7 @@ local function register_node(name, def)
def.groups = {unbreakable = 1, not_in_creative_inventory = maptools.creative}
end
def.on_drop = maptools.drop_msg
-- Prevent Map Tools nodes from being exploded by TNT.
def.on_blast = function() end
minetest.register_node(name, def)
end