Skip to content

Commit

Permalink
Fix BEEmod/BEE2-items#3840: replaceInstance's keep_instance option in…
Browse files Browse the repository at this point in the history
…verted

This broke toggle latches.
  • Loading branch information
TeamSpen210 committed Jul 3, 2021
1 parent d2f1eeb commit e6f51e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/precomp/conditions/instances.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def res_replace_instance(vmf: VMF, inst: Entity, res: Property):
origin = Vec.from_str(inst['origin'])
angles = Angle.from_str(inst['angles'])

if res.bool('keep_instance'):
if not res.bool('keep_instance'):
inst.remove() # Do this first to free the ent ID, so the new ent has
# the same one.

Expand Down

0 comments on commit e6f51e4

Please sign in to comment.