1
0
Fork 0
mirror of synced 2025-03-06 20:49:20 +01:00

Compare commits

...

11 commits

Author SHA1 Message Date
Lars Mueller
e86d0dff94 TNT node drop particles: Only pick string tiles as fallback 2022-05-13 17:35:16 +02:00
Lars Mueller
5549b9585d Fix incorrectly negated comparisons 2022-05-13 17:35:07 +02:00
Lars Mueller
d294ef757e player_api: Fix crash for players without model 2022-05-13 17:34:58 +02:00
bell07
0ad8222b97 player_api - fix compatibility code
get_animation does not return the data if called from outside without this change
2022-05-13 17:34:49 +02:00
sfan5
a23819f4fe Merge remote-tracking branch 'origin/stable-5' into HEAD 2022-01-30 21:54:41 +01:00
sfan5
dd7eed952e Merge remote-tracking branch 'origin/stable-5' into HEAD 2021-02-23 20:21:20 +01:00
sfan5
cb2c416b51 Merge remote-tracking branch 'origin/stable-5' into HEAD 2020-07-09 22:15:23 +02:00
sfan5
dcb3df0a38 Merge remote-tracking branch 'origin/stable-5' into HEAD 2020-04-05 18:48:33 +02:00
SmallJoker
0a9e24622f Merge branch 'master' of https://github.com/minetest/minetest_game into stable-5 2019-10-12 15:53:20 +02:00
Paramat
8678265125 Dungeon loot: Avoid empty 'if' branch to satisfy lua check 2019-03-31 22:26:33 +02:00
sfan5
df387e2394 Dungeon loot: Don't crash on unknown items
fixes #2228
2019-03-31 22:26:32 +02:00
4 changed files with 7 additions and 7 deletions

View file

@ -398,7 +398,7 @@ minetest.register_craftitem("carts:cart", {
pointed_thing) or itemstack
end
if not pointed_thing.type == "node" then
if pointed_thing.type ~= "node" then
return
end
if carts:is_rail(pointed_thing.under) then

View file

@ -260,7 +260,7 @@ function doors.register(name, def)
on_place = function(itemstack, placer, pointed_thing)
local pos
if not pointed_thing.type == "node" then
if pointed_thing.type ~= "node" then
return itemstack
end

View file

@ -182,7 +182,7 @@ minetest.register_globalstep(function()
for _, player in pairs(minetest.get_connected_players()) do
local name = player:get_player_name()
local player_data = players[name]
local model = models[player_data.model]
local model = player_data and models[player_data.model]
if model and not player_attached[name] then
local controls = player:get_player_control()
local animation_speed_mod = model.animation_speed or 30
@ -218,6 +218,6 @@ for _, api_function in pairs({"get_animation", "set_animation", "set_model", "se
minetest.log("warning", api_function .. " called on offline player")
return
end
original_function(player, ...)
return original_function(player, ...)
end
end

View file

@ -243,9 +243,9 @@ local function add_effects(pos, radius, drops)
local def = minetest.registered_nodes[name]
if def then
node = { name = name }
end
if def and def.tiles and def.tiles[1] then
texture = def.tiles[1]
if def.tiles and type(def.tiles[1]) == "string" then
texture = def.tiles[1]
end
end
end
end