|
|
@ -30,11 +30,20 @@ local solid_drawtypes = { |
|
|
|
local smokecontrol |
|
|
|
local smokecontrol |
|
|
|
if nodecore.smokeclear then |
|
|
|
if nodecore.smokeclear then |
|
|
|
smokecontrol = function(pos, smoke,smoke2) |
|
|
|
smokecontrol = function(pos, smoke,smoke2) |
|
|
|
|
|
|
|
local existing = _check_position_uncached(pos) |
|
|
|
|
|
|
|
|
|
|
|
if smoke then |
|
|
|
if smoke then |
|
|
|
nodecore.smokefx(pos, smoke, smoke2 or 1) |
|
|
|
|
|
|
|
else |
|
|
|
else |
|
|
|
nodecore.smokeclear(pos) |
|
|
|
|
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
--if smoke then |
|
|
|
|
|
|
|
-- nodecore.smokefx(pos, smoke, smoke2 or 1) |
|
|
|
|
|
|
|
--else |
|
|
|
|
|
|
|
-- nodecore.smokeclear(pos) |
|
|
|
|
|
|
|
--end |
|
|
|
end |
|
|
|
end |
|
|
|
else |
|
|
|
else |
|
|
|
smokecontrol = function(pos, smoke) end |
|
|
|
smokecontrol = function(pos, smoke) end |
|
|
|