Ruby support #1
					 1 changed files with 12 additions and 14 deletions
				
			
		|  | @ -387,7 +387,6 @@ impl Runtime for RubyRuntime { | |||
|             var.ivar_set("_current", BevyEntity(entity)) | ||||
|                 .expect("Failed to set current entity handle"); | ||||
| 
 | ||||
|             unsafe { | ||||
|             ruby.eval::<magnus::value::Value>(&script).map_err(|e| { | ||||
|                 ScriptingError::RuntimeError( | ||||
|                     e.inspect(), | ||||
|  | @ -400,7 +399,6 @@ impl Runtime for RubyRuntime { | |||
|                         .join("\n"), | ||||
|                 ) | ||||
|             })?; | ||||
|             } | ||||
| 
 | ||||
|             var.ivar_set("_current", ruby.qnil().as_value()) | ||||
|                 .expect("Failed to unset current entity handle"); | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue