forked from minetest/minetest_game
Fix some warnings.
Also fixes the failing travis checks.
This commit is contained in:
parent
28ecb3b261
commit
496521f4a1
@ -8,6 +8,8 @@ read_globals = {
|
|||||||
"vector",
|
"vector",
|
||||||
"VoxelManip", "VoxelArea",
|
"VoxelManip", "VoxelArea",
|
||||||
"PseudoRandom", "ItemStack",
|
"PseudoRandom", "ItemStack",
|
||||||
|
-- Silence "accessing undefined field copy of global table".
|
||||||
|
table = { fields = { "copy" } }
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Overwrites minetest.handle_node_drops
|
-- Overwrites minetest.handle_node_drops
|
||||||
|
@ -52,7 +52,8 @@ screwdriver.handler = function(itemstack, user, pointed_thing, mode, uses)
|
|||||||
local new_param2 = preservePart + rotationPart
|
local new_param2 = preservePart + rotationPart
|
||||||
local should_rotate = true
|
local should_rotate = true
|
||||||
|
|
||||||
if ndef and ndef.on_rotate then -- Node provides a handler, so let the handler decide instead if the node can be rotated
|
-- Node provides a handler, so let the handler decide instead if the node can be rotated
|
||||||
|
if ndef and ndef.on_rotate then
|
||||||
-- Copy pos and node because callback can modify it
|
-- Copy pos and node because callback can modify it
|
||||||
local result = ndef.on_rotate(vector.new(pos),
|
local result = ndef.on_rotate(vector.new(pos),
|
||||||
{name = node.name, param1 = node.param1, param2 = node.param2},
|
{name = node.name, param1 = node.param1, param2 = node.param2},
|
||||||
|
@ -399,7 +399,12 @@ minetest.register_node("tnt:gunpowder", {
|
|||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
tiles = {"tnt_gunpowder_straight.png", "tnt_gunpowder_curved.png", "tnt_gunpowder_t_junction.png", "tnt_gunpowder_crossing.png"},
|
tiles = {
|
||||||
|
"tnt_gunpowder_straight.png",
|
||||||
|
"tnt_gunpowder_curved.png",
|
||||||
|
"tnt_gunpowder_t_junction.png",
|
||||||
|
"tnt_gunpowder_crossing.png"
|
||||||
|
},
|
||||||
inventory_image = "tnt_gunpowder_inventory.png",
|
inventory_image = "tnt_gunpowder_inventory.png",
|
||||||
wield_image = "tnt_gunpowder_inventory.png",
|
wield_image = "tnt_gunpowder_inventory.png",
|
||||||
selection_box = {
|
selection_box = {
|
||||||
@ -476,7 +481,11 @@ minetest.register_node("tnt:gunpowder_burning", {
|
|||||||
fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
|
fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
|
||||||
},
|
},
|
||||||
drop = "",
|
drop = "",
|
||||||
groups = {dig_immediate = 2, attached_node = 1, connect_to_raillike = minetest.raillike_group("gunpowder")},
|
groups = {
|
||||||
|
dig_immediate = 2,
|
||||||
|
attached_node = 1,
|
||||||
|
connect_to_raillike = minetest.raillike_group("gunpowder")
|
||||||
|
},
|
||||||
sounds = default.node_sound_leaves_defaults(),
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
on_timer = function(pos, elapsed)
|
on_timer = function(pos, elapsed)
|
||||||
for dx = -1, 1 do
|
for dx = -1, 1 do
|
||||||
|
Loading…
Reference in New Issue
Block a user