mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-09-02 12:32:40 +02:00
compat.lua: Fix tpt.brushx, tpt.brushy, and tpt.watertest
This commit is contained in:
@@ -391,7 +391,7 @@ function tpt.toggle_pause()
|
||||
end
|
||||
|
||||
function tpt.watertest()
|
||||
sim.waterEqualization(not sim.waterEqualization())
|
||||
sim.waterEqualization(sim.waterEqualization() == 1 and 0 or 1)
|
||||
return sim.waterEqualization()
|
||||
end
|
||||
|
||||
@@ -689,9 +689,11 @@ function tpt_mt:__newindex(key, value)
|
||||
elseif key == "brushx" then
|
||||
local w, h = ui.brushRadius()
|
||||
ui.brushRadius(value, h)
|
||||
return
|
||||
elseif key == "brushy" then
|
||||
local w, h = ui.brushRadius()
|
||||
ui.brushRadius(w, value)
|
||||
return
|
||||
elseif key == "decoSpace" then
|
||||
return sim.decoSpace(value)
|
||||
end
|
||||
|
Reference in New Issue
Block a user