mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 14:52:58 +00:00
Cleanup, bump version to 9.4.2, bump MC version to 1.12.2
This commit is contained in:
1 parent
e0e26c8644
commit
4ef4f8614d
8 files changed
+43
-39
No files matched your search
@@ -36,21 +36,30 @@ public class TOPProvider implements Function<ITheOneProbe, Void>, IProbeInfoProv
|
||||
@Override
|
||||
public void addProbeInfo(ProbeMode mode, IProbeInfo probeInfo, EntityPlayer player, World world, IBlockState blockState, IProbeHitData data)
|
||||
{
|
||||
if (mode != ProbeMode.EXTENDED){
|
||||
if(mode != ProbeMode.EXTENDED)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
final TileEntity tile = world.getTileEntity( data.getPos() );
|
||||
|
||||
if (tile != null){
|
||||
if (tile.hasCapability(Capabilities.GAS_HANDLER_CAPABILITY, null)){
|
||||
if(tile != null)
|
||||
{
|
||||
if(tile.hasCapability(Capabilities.GAS_HANDLER_CAPABILITY, null))
|
||||
{
|
||||
IGasHandler handler = tile.getCapability(Capabilities.GAS_HANDLER_CAPABILITY, null);
|
||||
if (handler != null){
|
||||
|
||||
if(handler != null)
|
||||
{
|
||||
GasTankInfo[] tanks = handler.getTankInfo();
|
||||
for (GasTankInfo tank : tanks){
|
||||
if (tank.getGas() != null){
|
||||
|
||||
for(GasTankInfo tank : tanks)
|
||||
{
|
||||
if(tank.getGas() != null)
|
||||
{
|
||||
probeInfo.text(TextStyleClass.NAME + "Gas: " + tank.getGas().getGas().getLocalizedName());
|
||||
}
|
||||
|
||||
IProgressStyle style = probeInfo.defaultProgressStyle().suffix("mB");
|
||||
probeInfo.progress(tank.getStored(), tank.getMaxGas(), style);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user