You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
Stooberton
changed the title
Wire Hydraulics break everything during an undo operation
Elastics and hydraulics break everything during an undo operation
Jul 1, 2022
There's a workaround utilizing the PreUndo hook, which actually turns out to be a great thing. If we know the contraption is going to be entirely deleted, we can go through and nicely clean up the contraption, bypassing a lot of logic.
I've also added a Defuse method to the contraption class to safely defuse and remove contraptions that experience the error, which still happens in a currently unknown scenario.
Stooberton
changed the title
Elastics and hydraulics break everything during an undo operation
Elastics may be causing errors during undos
Sep 16, 2022
During an undo,
constraint.Ent1
will beNULL
, breaking everything.I have a dumb hack in place to clean it up but it is far from perfect, still breaks on some dupes.
https://github.com/Stooberton/CFW/blob/435108e854d8c0bd5aced005110d8972aacdef53/lua/cfw/core/constraints_sv.lua#L14-L67
The text was updated successfully, but these errors were encountered: