Skip to content

Commit

Permalink
made it possible to set require_key in NoclipMode to None.
Browse files Browse the repository at this point in the history
  • Loading branch information
pokepetter committed Dec 3, 2024
1 parent c1e629b commit a83e6f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ursina/scripts/noclip_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def update(self):
if hasattr(window, 'exit_button'):
window.exit_button.ignore = held_keys[self.require_key]

if not held_keys[self.require_key]:
if self.require_key is not None and not held_keys[self.require_key]:
return

self.entity.y += (held_keys['e'] - held_keys['q']) * time.dt * self.speed
Expand Down

0 comments on commit a83e6f6

Please sign in to comment.