mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
consider not forgetting. thanks.
priority is outputted correctly now
This commit is contained in:
parent
be93b9cc8c
commit
65ea177ac0
@ -205,7 +205,7 @@ public abstract class TileEntityBatteryBase extends TileEntityMachineBase implem
|
|||||||
@Callback(direct = true)
|
@Callback(direct = true)
|
||||||
@Optional.Method(modid = "OpenComputers")
|
@Optional.Method(modid = "OpenComputers")
|
||||||
public Object[] getModeInfo(Context context, Arguments args) {
|
public Object[] getModeInfo(Context context, Arguments args) {
|
||||||
return new Object[] {redLow, redHigh, getPriority().ordinal()};
|
return new Object[] {redLow, redHigh, getPriority().ordinal()-1};
|
||||||
}
|
}
|
||||||
@Callback(direct = true)
|
@Callback(direct = true)
|
||||||
@Optional.Method(modid = "OpenComputers")
|
@Optional.Method(modid = "OpenComputers")
|
||||||
@ -244,6 +244,6 @@ public abstract class TileEntityBatteryBase extends TileEntityMachineBase implem
|
|||||||
@Callback(direct = true)
|
@Callback(direct = true)
|
||||||
@Optional.Method(modid = "OpenComputers")
|
@Optional.Method(modid = "OpenComputers")
|
||||||
public Object[] getInfo(Context context, Arguments args) {
|
public Object[] getInfo(Context context, Arguments args) {
|
||||||
return new Object[] {getPower(), getMaxPower(), redLow, redHigh, getPriority().ordinal()};
|
return new Object[] {getPower(), getMaxPower(), redLow, redHigh, getPriority().ordinal()-1};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -233,7 +233,7 @@ public class TileEntityBatteryREDD extends TileEntityBatteryBase {
|
|||||||
@Callback(direct = true)
|
@Callback(direct = true)
|
||||||
@Optional.Method(modid = "OpenComputers")
|
@Optional.Method(modid = "OpenComputers")
|
||||||
public Object[] getInfo(Context context, Arguments args) {
|
public Object[] getInfo(Context context, Arguments args) {
|
||||||
return new Object[] {this.power.doubleValue(), this.delta.longValue(), redLow, redHigh, getPriority().ordinal()};
|
return new Object[] {this.power.doubleValue(), this.delta.longValue(), redLow, redHigh, getPriority().ordinal()-1};
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user