forked from Mineclonia/Mineclonia
don't stop weather twice
This commit is contained in:
parent
336c188ab7
commit
cff2d445f7
|
@ -333,7 +333,6 @@ minetest.register_chatcommand("weather", {
|
||||||
local def=mcl_weather.get_weatherdef(param)
|
local def=mcl_weather.get_weatherdef(param)
|
||||||
local old_weather=mcl_weather.current
|
local old_weather=mcl_weather.current
|
||||||
if def then
|
if def then
|
||||||
mcl_weather.stop_weather(mcl_weather.get_weatherdef(mcl_weather.current))
|
|
||||||
if duration then
|
if duration then
|
||||||
def.min_duration=duration
|
def.min_duration=duration
|
||||||
def.max_duration=duration
|
def.max_duration=duration
|
||||||
|
|
Loading…
Reference in New Issue