mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 04:52:25 +00:00
fix CT gasstack with amount operation. Should fix #4944
This commit is contained in:
1 parent
d8a497216e
commit
e21e72052f
1 file changed
+2
-2
+2
-2
@@ -137,7 +137,7 @@ public class CraftTweakerGasStack implements IGasStack
|
||||
@Override
|
||||
public IGasStack withAmount(int amount)
|
||||
{
|
||||
return null;
|
||||
return new CraftTweakerGasStack(new GasStack(stack.getGas(), amount));
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -149,6 +149,6 @@ public class CraftTweakerGasStack implements IGasStack
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
return "<gas:" + stack.getGas().getName() + ">";
|
||||
return String.format("<gas:%sx%dmb>", stack.getGas().getName(), stack.amount);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user