From 17a602a5a1d3b0362152222dc62c102c399ec4a4 Mon Sep 17 00:00:00 2001 From: HybridDog Date: Fri, 5 Feb 2021 17:17:50 +0100 Subject: Remove unused loop variables, trailing whitespace and fix mixed-whitespace indentations --- trashcan.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'trashcan.lua') diff --git a/trashcan.lua b/trashcan.lua index fb9a788..20f3fb4 100644 --- a/trashcan.lua +++ b/trashcan.lua @@ -1,7 +1,7 @@ local S = minetest.get_translator("pipeworks") minetest.register_node("pipeworks:trashcan", { - description = S("Trash Can"), - drawtype = "normal", + description = S("Trash Can"), + drawtype = "normal", tiles = { "pipeworks_trashcan_bottom.png", "pipeworks_trashcan_bottom.png", @@ -9,15 +9,15 @@ minetest.register_node("pipeworks:trashcan", { "pipeworks_trashcan_side.png", "pipeworks_trashcan_side.png", "pipeworks_trashcan_side.png", - }, - groups = {snappy = 3, tubedevice = 1, tubedevice_receiver = 1}, + }, + groups = {snappy = 3, tubedevice = 1, tubedevice_receiver = 1}, tube = { insert_object = function(pos, node, stack, direction) return ItemStack("") end, connect_sides = {left = 1, right = 1, front = 1, back = 1, top = 1, bottom = 1}, priority = 1, -- Lower than anything else - }, + }, on_construct = function(pos) local meta = minetest.get_meta(pos) meta:set_string("formspec", @@ -33,7 +33,7 @@ minetest.register_node("pipeworks:trashcan", { "listring[]") meta:set_string("infotext", S("Trash Can")) meta:get_inventory():set_size("trash", 1) - end, + end, after_place_node = pipeworks.after_place, after_dig_node = pipeworks.after_dig, on_metadata_inventory_put = function(pos, listname, index, stack, player) -- cgit v1.2.3