forked from mtcontrib/minetest-mod-snow
small fixes
This commit is contained in:
parent
de76f5dc62
commit
b9e93a8b58
@ -165,7 +165,7 @@ if snow.enable_snowfall then
|
|||||||
|
|
||||||
-- Snow
|
-- Snow
|
||||||
minetest.register_globalstep(function(dtime)
|
minetest.register_globalstep(function(dtime)
|
||||||
for _, player in ipairs(minetest.get_connected_players()) do
|
for _, player in pairs(minetest.get_connected_players()) do
|
||||||
local ppos = player:getpos()
|
local ppos = player:getpos()
|
||||||
|
|
||||||
local sminp = addvectors(ppos, {x=-20, y=0, z=-20})
|
local sminp = addvectors(ppos, {x=-20, y=0, z=-20})
|
||||||
|
@ -228,6 +228,7 @@ minetest.register_node("snow:star_lit", {
|
|||||||
-- Moss
|
-- Moss
|
||||||
minetest.register_node("snow:moss", {
|
minetest.register_node("snow:moss", {
|
||||||
description = "Moss",
|
description = "Moss",
|
||||||
|
inventory_image = "snow_moss.png",
|
||||||
tiles = {"snow_moss.png"},
|
tiles = {"snow_moss.png"},
|
||||||
drawtype = "signlike",
|
drawtype = "signlike",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
|
@ -53,7 +53,7 @@ than I originally planned. :p ~ LazyJ
|
|||||||
--
|
--
|
||||||
|
|
||||||
local function is_water(pos)
|
local function is_water(pos)
|
||||||
local nn = minetest.env:get_node(pos).name
|
local nn = minetest.get_node(pos).name
|
||||||
return minetest.get_item_group(nn, "water") ~= 0
|
return minetest.get_item_group(nn, "water") ~= 0
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -181,8 +181,8 @@ minetest.register_craftitem("snow:sled", {
|
|||||||
local name = placer:get_player_name()
|
local name = placer:get_player_name()
|
||||||
local player_pos = placer:getpos()
|
local player_pos = placer:getpos()
|
||||||
if not players_sled[name] then
|
if not players_sled[name] then
|
||||||
if minetest.get_node({x=player_pos.x,y=player_pos.y, z=player_pos.z}).name == "default:snow" then
|
if minetest.get_node(player_pos).name == "default:snow" then
|
||||||
local sled = minetest.env:add_entity(pos, "snow:sled")
|
local sled = minetest.add_entity(pos, "snow:sled")
|
||||||
sled:get_luaentity():on_rightclick(placer)
|
sled:get_luaentity():on_rightclick(placer)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user