made peripherals a static class
This commit is contained in:
@@ -54,10 +54,10 @@ Also peripherals can be made accessible via the network. More on that later.
|
||||
## Usage
|
||||
|
||||
```haxe
|
||||
var back = Peripheral.instance.getRedstone("back");
|
||||
var back = Peripheral.getRedstone("back");
|
||||
back.setOutput(true);
|
||||
|
||||
var drive Peripheral.instance.getDrive("drive_0");
|
||||
var drive Peripheral.getDrive("drive_0");
|
||||
drive.eject();
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user