light editor improv / colour picker works

This commit is contained in:
teverse 2019-07-05 15:38:39 +01:00
parent 3176dda939
commit 45fa019c80
1 changed files with 1 additions and 1 deletions
create/controllers

View File

@ -37,7 +37,7 @@ controller.registerLight = function(light)
lastUpdate = os.time()
repeat wait(.1) until os.time() - lastUpdate > 0.6
newBlock.emissiveColour = (light.diffuseColour * 20):min(colour(0.1,0.1,0.1))
newBlock.emissiveColour = (light.diffuseColour * 20):max(colour(0.1,0.1,0.1))
if newBlock.position ~= light.position then
newBlock.position = light.position