Fix trailing whitespaces and tabs.

This commit is contained in:
addi 2016-07-22 16:40:41 +02:00
parent 9b5250c1eb
commit 5f11ec9809
2 changed files with 25 additions and 25 deletions

View File

@ -7,7 +7,7 @@
Jat15 for the place and rotate system
Hectic for the new Textures that fit into Minetest 0.4.14
This work is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License.
This work is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License.
To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/ or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.
]]
@ -17,19 +17,19 @@ arrow_signs.formspec = "field[text;Sign text:;${text}]";
local creative = minetest.setting_getbool("creative_mode") or false
arrow_signs.on_place = function(itemstack, placer, pointed_thing)
local posabove = pointed_thing.above
local posunder = pointed_thing.under
local vector = placer:get_look_dir()
local place = true
if posabove.y>posunder.y then
if(vector.z>0.5 and vector.z<=1) then
minetest.add_node(posabove,{name = itemstack:get_name(), param2 = 10})
elseif (vector.x>0.5 and vector.x<=1) then
minetest.add_node(posabove,{name = itemstack:get_name(), param2 = 19})
elseif(-0.5>vector.z and -1<=vector.z) then
minetest.add_node(posabove,{name = itemstack:get_name(), param2 = 4})
minetest.add_node(posabove,{name = itemstack:get_name(), param2 = 4})
elseif (-0.5>vector.x and -1<=vector.x) then
minetest.add_node(posabove,{name = itemstack:get_name(), param2 = 13})
else
@ -41,7 +41,7 @@ arrow_signs.on_place = function(itemstack, placer, pointed_thing)
elseif (vector.x>0.5 and vector.x<=1) then
minetest.add_node(posabove,{name = itemstack:get_name(), param2 = 17})
elseif(-0.5>vector.z and -1<=vector.z) then
minetest.add_node(posabove,{name = itemstack:get_name(), param2 = 6})
minetest.add_node(posabove,{name = itemstack:get_name(), param2 = 6})
elseif (-0.5>vector.x and -1<=vector.x) then
minetest.add_node(posabove,{name = itemstack:get_name(), param2 = 15})
else
@ -142,15 +142,15 @@ arrow_signs.create_lines = function(text)
end
minetest.override_item("default:sign_wall", {
groups = {choppy=2,dig_immediate=2,attached_node=1,sign=1},
groups = {choppy=2,dig_immediate=2,attached_node=1,sign=1},
})
--Sign arrow
minetest.register_node("arrow_signs:wall", {
description = "Arrow signs",
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},
@ -158,12 +158,12 @@ minetest.register_node("arrow_signs:wall", {
{ 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",
@ -173,7 +173,7 @@ minetest.register_node("arrow_signs:wall", {
walkable = false,
groups = {choppy=2,dig_immediate=2,sign=1},
sounds = default.node_sound_defaults(),
on_place = arrow_signs.on_place,
on_place = arrow_signs.on_place,
on_construct = function(pos)
--local n = minetest.get_node(pos)
local meta = minetest.get_meta(pos)

View File

@ -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)