@@ -34,7 +34,7 @@ use core::pin::Pin;
34
34
use core:: time:: Duration ;
35
35
use minicbor:: decode:: Decoder ;
36
36
use oc_wasm_futures:: sleep;
37
- use oc_wasm_opencomputers:: common:: { Dimension , Point , RelativeSide , Rgb } ;
37
+ use oc_wasm_opencomputers:: common:: { Dimension , Point , Rgb } ;
38
38
use oc_wasm_opencomputers:: error:: Error ;
39
39
use oc_wasm_opencomputers:: { gpu, keyboard, redstone, robot, screen} ;
40
40
use oc_wasm_safe:: { component, computer} ;
@@ -574,11 +574,15 @@ impl Application {
574
574
// If we are low on energy, recharge.
575
575
if energy_percent ( ) < 95 {
576
576
let mut rs_locked = self . redstone . lock ( & mut self . invoker , & mut self . buffer ) ;
577
- rs_locked. set_side_output ( RelativeSide :: Front , 15 ) . await ?;
577
+ rs_locked
578
+ . set_output ( & [ Some ( 15 ) , Some ( 15 ) , Some ( 15 ) , Some ( 15 ) , Some ( 15 ) , Some ( 15 ) ] )
579
+ . await ?;
578
580
while energy_percent ( ) < 95 {
579
581
sleep:: for_uptime ( Duration :: from_secs ( 10 ) ) . await ;
580
582
}
581
- rs_locked. set_side_output ( RelativeSide :: Front , 0 ) . await ?;
583
+ rs_locked
584
+ . set_output ( & [ Some ( 0 ) , Some ( 0 ) , Some ( 0 ) , Some ( 0 ) , Some ( 0 ) , Some ( 0 ) ] )
585
+ . await ?;
582
586
}
583
587
584
588
// Calculate how many layers we can fill on a single trip.
0 commit comments