WarpDriveLift: quick fix on OpenComputers
This commit is contained in:
parent
0953f8506b
commit
a8dde7cde7
1 changed files with 9 additions and 4 deletions
|
@ -194,7 +194,11 @@ public class TileEntityLift extends TileEntityAbstractEnergy {
|
|||
@Callback
|
||||
@Optional.Method(modid = "OpenComputers")
|
||||
public Object[] mode(Context context, Arguments arguments) {
|
||||
return mode(argumentsOCtoCC(arguments));
|
||||
return mode(
|
||||
new Object[] {
|
||||
arguments.checkString(0)
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
@Callback
|
||||
|
@ -216,12 +220,13 @@ public class TileEntityLift extends TileEntityAbstractEnergy {
|
|||
computerMode = MODE_REDSTONE;
|
||||
}
|
||||
}
|
||||
|
||||
switch (computerMode) {
|
||||
case -1:
|
||||
case MODE_REDSTONE:
|
||||
return new Object[] { "redstone" };
|
||||
case 1:
|
||||
case MODE_UP:
|
||||
return new Object[] { "up" };
|
||||
case 2:
|
||||
case MODE_DOWN:
|
||||
return new Object[] { "down" };
|
||||
default:
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue