refactor one shot TileNetworkList creation to use helper method

This commit is contained in:
Xander Victory committed 2017-11-08 15:16:09 +08:00
1 parent 2411a1be4d
commit 36ad9e7f69
20 files changed
+48 -120

No files matched your search

@@ -1,7 +1,6 @@
package mekanism.client.gui;
import java.io.IOException;
import java.util.ArrayList;
import mekanism.api.Coord4D;
import mekanism.client.gui.element.GuiEnergyInfo;
@@ -169,7 +168,7 @@ public class GuiFactory extends GuiMekanism
if(!stack.isEmpty() && stack.getItem() instanceof ItemGaugeDropper)
{
TileNetworkList data = TileNetworkList.of(1);
TileNetworkList data = TileNetworkList.withContents(1);
Mekanism.packetHandler.sendToServer(new TileEntityMessage(Coord4D.get(tileEntity), data));
SoundHandler.playSound(SoundEvents.UI_BUTTON_CLICK);