mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-16 08:02:36 +00:00
Ran rubocop autocorrect
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
origin = entity.position
|
||||
|
||||
on.entity_moved do |event|
|
||||
if origin.distance3d(event.entity.position) <= 3.0
|
||||
entity.position = origin + Vector.up * 2.4
|
||||
else
|
||||
entity.position = origin
|
||||
end
|
||||
end
|
||||
entity.position = if origin.distance3d(event.entity.position) <= 3.0
|
||||
origin + Vector.up * 2.4
|
||||
else
|
||||
origin
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user