mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-27 23:33:08 +00:00
refactor one shot TileNetworkList creation to use helper method
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user