@@ -35,31 +35,17 @@ public boolean equals(@Nullable IPeripheral other) {
3535 }
3636
3737 @ LuaFunction (mainThread = true )
38- public final boolean mount (IComputerAccess computer , @ Nullable String str ) {
38+ public final boolean mount (IComputerAccess computer , String str ) {
3939 if (Objects .equals (str , "rom" )) {
4040 return false ;
4141 }
4242 mount = str ;
4343 return hdd .attach (computer ,str );
4444 }
4545 @ LuaFunction (mainThread = true )
46- public final boolean mount (IComputerAccess computer ) {
47- String str = "drive" ;
48- if (Objects .equals (str , "rom" )) {
49- return false ;
50- }
51- mount = str ;
52- return hdd .attach (computer ,str );
53- }
54-
55- @ LuaFunction (mainThread = true )
56- public final boolean unmount (IComputerAccess computer , @ Nullable String str ) {
46+ public final boolean unmount (IComputerAccess computer , String str ) {
5747 return hdd .detach (computer ,str );
5848 }
59- @ LuaFunction (mainThread = true )
60- public final boolean unmount (IComputerAccess computer ) {
61- return hdd .detach (computer ,mount );
62- }
6349 public static IPeripheral getPeripheral (BlockEntity blockEntity , Direction direction ) {
6450 return new HardDrivePeripheral (blockEntity );
6551 }
0 commit comments