fix CT gasstack with amount operation. Should fix #4944

This commit is contained in:
Xander committed 2018-03-24 23:58:45 +08:00
1 parent d8a497216e
commit e21e72052f
1 file changed
+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);
}
}