mirror of
https://github.com/minetest-mods/technic.git
synced 2024-12-25 10:20:37 +01:00
Fix autoloading for solar arrays
This autoloads the node above a solar array, so that its light value can be determined. Previously, solar arrays in unloaded blocks would report an input of 0 to the switching station.
This commit is contained in:
parent
3f179e4c53
commit
1615681e89
@ -17,6 +17,8 @@ function technic.register_solar_array(data)
|
|||||||
pos1.y = pos.y + 1
|
pos1.y = pos.y + 1
|
||||||
pos1.x = pos.x
|
pos1.x = pos.x
|
||||||
pos1.z = pos.z
|
pos1.z = pos.z
|
||||||
|
|
||||||
|
technic.get_or_load_node(pos1)
|
||||||
local light = minetest.get_node_light(pos1, nil)
|
local light = minetest.get_node_light(pos1, nil)
|
||||||
local time_of_day = minetest.get_timeofday()
|
local time_of_day = minetest.get_timeofday()
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
|
Loading…
Reference in New Issue
Block a user