added onDrop updating
This commit is contained in:
parent
4938d3628c
commit
422a8c1899
@ -88,6 +88,10 @@ end
|
||||
-- counting functions
|
||||
------------------------
|
||||
|
||||
function onDrop()
|
||||
updateColors()
|
||||
end
|
||||
|
||||
-- updates the matcolor and handcolor variable
|
||||
function updateColors()
|
||||
matColor = playermatApi.getMatColorByPosition(self.getPosition())
|
||||
@ -123,4 +127,4 @@ function updateValue()
|
||||
size = size + 1
|
||||
end
|
||||
self.UI.setAttribute("Count", "text", size)
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user