mirror of
https://github.com/minetest-mods/digtron.git
synced 2025-01-03 09:37:27 +01:00
fix particle effect settings check
This commit is contained in:
parent
a69a3f4eda
commit
7ef5e3c892
@ -315,7 +315,7 @@ digtron.execute_dig_cycle = function(pos, clicker)
|
|||||||
|
|
||||||
-- actually burn the fuel needed
|
-- actually burn the fuel needed
|
||||||
fuel_burning = fuel_burning - digging_fuel_cost
|
fuel_burning = fuel_burning - digging_fuel_cost
|
||||||
if digtron.particle_effects and exhaust == 1 then
|
if digtron.config.particle_effects and exhaust == 1 then
|
||||||
table.insert(particle_systems, burn_smoke(pos, digging_fuel_cost))
|
table.insert(particle_systems, burn_smoke(pos, digging_fuel_cost))
|
||||||
end
|
end
|
||||||
if fuel_burning < 0 then
|
if fuel_burning < 0 then
|
||||||
@ -511,7 +511,7 @@ digtron.execute_downward_dig_cycle = function(pos, clicker)
|
|||||||
|
|
||||||
-- actually burn the fuel needed
|
-- actually burn the fuel needed
|
||||||
fuel_burning = fuel_burning - digging_fuel_cost
|
fuel_burning = fuel_burning - digging_fuel_cost
|
||||||
if digtron.particle_effects and exhaust == 1 then
|
if digtron.config.particle_effects and exhaust == 1 then
|
||||||
table.insert(particle_systems, burn_smoke(pos, digging_fuel_cost))
|
table.insert(particle_systems, burn_smoke(pos, digging_fuel_cost))
|
||||||
end
|
end
|
||||||
if fuel_burning < 0 then
|
if fuel_burning < 0 then
|
||||||
|
Loading…
Reference in New Issue
Block a user