mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-20 12:19:55 +00:00
#1191 Crash with electric lights and remove ME conduit console spam
This commit is contained in:
1 parent
72cb8f6ab2
commit
70684aee33
2 files changed
+5
-2
No files matched your search
@@ -157,8 +157,6 @@ public class MEConduit extends AbstractConduit implements IMEConduit {
|
||||
grid = new MEConduitGrid(this);
|
||||
}
|
||||
|
||||
System.out.println(validConnections);
|
||||
|
||||
if(getNode() == null && !worldObj.isRemote) {
|
||||
IGridNode node = AEApi.instance().createGridNode(grid);
|
||||
if(node != null) {
|
||||
|
||||
@@ -164,6 +164,11 @@ public class TileElectricLight extends TileEntityEio implements IInternalPowerRe
|
||||
int minDist = Integer.MAX_VALUE;
|
||||
BlockCoord charger = null;
|
||||
Map<BlockCoord, IWirelessCharger> map = WirelessChargerController.instance.getChargerMap(worldObj);
|
||||
|
||||
if (map == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
for (BlockCoord b : map.keySet()) {
|
||||
int dist = b.distance(new BlockCoord(this));
|
||||
if (dist < minDist) {
|
||||
|
||||
Reference in new issue
Block a user