Fix screwdriver variables

This commit is contained in:
kilbith 2015-05-15 10:45:21 +02:00
parent f1db5635f5
commit f1dca4e990
8 changed files with 13 additions and 4 deletions

View File

@ -1,4 +1,5 @@
computer = {}
screwdriver = screwdriver or {}
computer.register = function (name, def)
local nodename = name

View File

@ -1,3 +1,5 @@
screwdriver = screwdriver or {}
local function start_smoke(pos, node, clicker, chimney)
local this_spawner_meta = minetest.get_meta(pos)
local id = this_spawner_meta:get_int("smoky")

View File

@ -99,7 +99,7 @@ function homedecor.find_ceiling(itemstack, placer, pointed_thing)
return isceiling, pos
end
if screwdriver == nil then screwdriver = {} end
screwdriver = screwdriver or {}
homedecor.plain_wood = "homedecor_generic_wood_plain.png^"..
"(homedecor_generic_wood_boards_overlay.png^[colorize:#a7682020:100)"

View File

@ -1,4 +1,5 @@
local inbox = {}
screwdriver = screwdriver or {}
minetest.register_craft({
output ="inbox:empty",

View File

@ -1,4 +1,5 @@
local tmp = {}
screwdriver = screwdriver or {}
minetest.register_entity("itemframes:item",{
hp_max = 1,

View File

@ -1,4 +1,5 @@
lrfurn = {}
screwdriver = screwdriver or {}
lrfurn.fdir_to_fwd = {
{ 0, 1 },

View File

@ -1,3 +1,5 @@
screwdriver = screwdriver or {}
minetest.register_node("plasmascreen:stand", {
description = "Plasma Screen TV Stand",
tiles = {"plasmascreen_back.png"},
@ -142,6 +144,7 @@ minetest.register_node("plasmascreen:tv_off", {
light_source = 10,
selection_box = tv_cbox,
collision_box = tv_cbox,
on_rotate = screwdriver.disallow,
groups = {snappy=1, choppy=2, oddly_breakable_by_hand=2, not_in_creative_inventory=1},
after_place_node = function(pos, placer, itemstack)
if not checkwall(pos) then

View File

@ -11,8 +11,8 @@
-- }
signs_lib = {}
screwdriver = screwdriver or {}
local screwdriver = screwdriver or {}
signs_lib.wallmounted_rotate = function(pos, node, user, mode, new_param2)
if mode ~= screwdriver.ROTATE_AXIS then return false end
minetest.swap_node(pos, {name = node.name, param2 = (node.param2 + 1) % 6})