mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 06:42:56 +00:00
Remove dead code (#34)
* delete unused class * delete reflectionUtils * remove debugging util class * remove listUtils * unused imports and labels * fix inlining creating an unnecessary array
This commit is contained in:
1 parent
2c6d666b89
commit
227e581bb9
53 files changed
+101
-456
No files matched your search
@@ -1,6 +1,7 @@
|
||||
package mekanism.common.util;
|
||||
|
||||
import io.netty.buffer.ByteBuf;
|
||||
import java.util.Arrays;
|
||||
import mekanism.api.gas.GasStack;
|
||||
import mekanism.api.gas.GasTank;
|
||||
import mekanism.common.PacketHandler;
|
||||
@@ -83,7 +84,7 @@ public class TileUtils {
|
||||
public static void emitGas(TileEntityBasicBlock tile, GasTank tank, int gasOutput, EnumFacing facing) {
|
||||
if (tank.getGas() != null) {
|
||||
GasStack toSend = new GasStack(tank.getGas().getGas(), Math.min(tank.getStored(), gasOutput));
|
||||
tank.draw(GasUtils.emit(toSend, tile, ListUtils.asList(facing)), true);
|
||||
tank.draw(GasUtils.emit(toSend, tile, Arrays.asList(facing)), true);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user