Don't modify GRID_MAX and MIN magic numbers

This commit is contained in:
David Vogel 2023-12-30 13:58:39 +01:00
parent 478e1284fb
commit f7426f3ed5

View File

@ -311,8 +311,8 @@ function Modification.RequiredChanges()
-- These magic numbers stop any grid updates (pixel physics), even in the release build. -- These magic numbers stop any grid updates (pixel physics), even in the release build.
-- But any Box2D objects glitch, therefore the mod option (disable-physics) is disabled and hidden in the non dev build. -- But any Box2D objects glitch, therefore the mod option (disable-physics) is disabled and hidden in the non dev build.
magic["GRID_MAX_UPDATES_PER_FRAME"] = ModSettingGet("noita-mapcap.disable-physics") and "0" or "128" --magic["GRID_MAX_UPDATES_PER_FRAME"] = ModSettingGet("noita-mapcap.disable-physics") and "0" or "128"
magic["GRID_MIN_UPDATES_PER_FRAME"] = ModSettingGet("noita-mapcap.disable-physics") and "1" or "40" --magic["GRID_MIN_UPDATES_PER_FRAME"] = ModSettingGet("noita-mapcap.disable-physics") and "1" or "40"
if ModSettingGet("noita-mapcap.disable-postfx") then if ModSettingGet("noita-mapcap.disable-postfx") then
patches.PostFinalConst = { patches.PostFinalConst = {