mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-03-12 04:35:36 +00:00
Fixed wrong tank type. getInfo returns input tank type and setType also works with input tank type
This commit is contained in:
parent
03c5466c0e
commit
be2edd87d8
@ -306,7 +306,7 @@ public class TileEntityChungus extends TileEntityLoadedBase implements IEnergyPr
|
|||||||
@Callback(direct = true)
|
@Callback(direct = true)
|
||||||
@Optional.Method(modid = "OpenComputers")
|
@Optional.Method(modid = "OpenComputers")
|
||||||
public Object[] getType(Context context, Arguments args) {
|
public Object[] getType(Context context, Arguments args) {
|
||||||
return CompatHandler.steamTypeToInt(tanks[1].getTankType());
|
return CompatHandler.steamTypeToInt(tanks[0].getTankType());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Callback(direct = true, limit = 4)
|
@Callback(direct = true, limit = 4)
|
||||||
|
|||||||
@ -311,7 +311,7 @@ public class TileEntityMachineLargeTurbine extends TileEntityMachineBase impleme
|
|||||||
@Callback(direct = true)
|
@Callback(direct = true)
|
||||||
@Optional.Method(modid = "OpenComputers")
|
@Optional.Method(modid = "OpenComputers")
|
||||||
public Object[] getType(Context context, Arguments args) {
|
public Object[] getType(Context context, Arguments args) {
|
||||||
return CompatHandler.steamTypeToInt(tanks[1].getTankType());
|
return CompatHandler.steamTypeToInt(tanks[0].getTankType());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Callback(direct = true, limit = 4)
|
@Callback(direct = true, limit = 4)
|
||||||
|
|||||||
@ -364,7 +364,7 @@ public class TileEntityMachineTurbine extends TileEntityLoadedBase implements IS
|
|||||||
@Callback(direct = true)
|
@Callback(direct = true)
|
||||||
@Optional.Method(modid = "OpenComputers")
|
@Optional.Method(modid = "OpenComputers")
|
||||||
public Object[] getType(Context context, Arguments args) {
|
public Object[] getType(Context context, Arguments args) {
|
||||||
return CompatHandler.steamTypeToInt(tanks[1].getTankType());
|
return CompatHandler.steamTypeToInt(tanks[0].getTankType());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Callback(direct = true, limit = 4)
|
@Callback(direct = true, limit = 4)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user