lib/metacosm/simulation.rb in metacosm-0.2.9 vs lib/metacosm/simulation.rb in metacosm-0.2.10
- old
+ new
@@ -61,10 +61,10 @@
@current ||= new
end
def clear!
@events = []
- @command_queue.clear
+ @command_queue&.clear
end
protected
def handler_for(command)
@handlers ||= {}