1
0
mirror of https://github.com/Splizard/minetest-mod-snow.git synced 2024-12-28 23:40:17 +01:00

round player position, #20 could be fixed

M  src/falling_snow.lua
This commit is contained in:
HybridDog 2016-08-21 09:07:00 +02:00
parent 6affec0a56
commit b1a7d12b90

View File

@ -238,7 +238,7 @@ end
local lighter_snowfall = snow.lighter_snowfall local lighter_snowfall = snow.lighter_snowfall
local function calc_snowfall() local function calc_snowfall()
for _, player in pairs(minetest.get_connected_players()) do for _, player in pairs(minetest.get_connected_players()) do
local ppos = player:getpos() local ppos = vector.round(player:getpos())
-- Make sure player is not in a cave/house... -- Make sure player is not in a cave/house...
if get_snow(ppos) if get_snow(ppos)