forked from mtcontrib/arrow_signs
Fix trailing whitespaces and tabs.
This commit is contained in:
@ -2,8 +2,8 @@
|
||||
minetest.register_node("arrow_signs:shared_locked", {
|
||||
description = "Shared locked sign",
|
||||
drawtype = "nodebox",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ 0.25, -0.25, 0.5, -0.25, 0.5, 0.47},
|
||||
{ 0.1875, -0.3125, 0.5, -0.1875, -0.25, 0.47},
|
||||
@ -11,12 +11,12 @@ minetest.register_node("arrow_signs:shared_locked", {
|
||||
{ 0.0625, -0.375, 0.5, -0.0625, -0.437, 0.47}
|
||||
}
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ 0.30, -0.5, 0.5, -0.30, 0.5, 0.47}
|
||||
}
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ 0.30, -0.5, 0.5, -0.30, 0.5, 0.47}
|
||||
}
|
||||
},
|
||||
tiles = {"arrow_sign_border_left.png","arrow_sign_border_right.png","arrow_sign_border_up.png","arrow_sign_border_down.png","arrow_sign.png","arrow_sign.png"},
|
||||
inventory_image = "arrow_sign.png",
|
||||
wield_image = "arrow_sign.png",
|
||||
@ -26,7 +26,7 @@ minetest.register_node("arrow_signs:shared_locked", {
|
||||
walkable = false,
|
||||
groups = {choppy=2,dig_immediate=2,sign_locked=1},
|
||||
legacy_wallmounted = true,
|
||||
|
||||
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
itemstack = arrow_signs.on_place(itemstack, placer, pointed_thing);
|
||||
locks:lock_set_owner( pointed_thing.above, placer, "Shared locked sign");
|
||||
@ -52,7 +52,7 @@ minetest.register_node("arrow_signs:shared_locked", {
|
||||
end,
|
||||
|
||||
on_receive_fields = function(pos, formname, fields, sender)
|
||||
|
||||
|
||||
-- if the user already has the right to use this and did input text
|
||||
if( fields.text
|
||||
and ( not(fields.locks_sent_lock_command)
|
||||
|
Reference in New Issue
Block a user