From 50d62a1298f05d6d440a5bc261a0fdf9ffece893 Mon Sep 17 00:00:00 2001 From: Foghrye4 Date: Wed, 31 May 2017 21:23:10 +0300 Subject: energy net fix attempt --- ihl/flexible_cable/IHLENet.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'ihl/flexible_cable/IHLENet.java') diff --git a/ihl/flexible_cable/IHLENet.java b/ihl/flexible_cable/IHLENet.java index f188937..cf0670d 100644 --- a/ihl/flexible_cable/IHLENet.java +++ b/ihl/flexible_cable/IHLENet.java @@ -113,17 +113,17 @@ public class IHLENet { } } - public void removeCableAndSplitGrids(int gridID, NBTTagCompound cable) + public void removeCableAndSplitGrids(int gridID, IHLCable cable) { this.grids.get(gridID).removeCableAndSplitGrids(cable); } - public boolean hasSame(Set set, Set set2) + public boolean hasSame(Set set, Set set2) { - Iterator i1 = set.iterator(); + Iterator i1 = set.iterator(); while(i1.hasNext()) { - NBTTagCompound num1=i1.next(); + IHLCable num1=i1.next(); if(set2.contains(num1)) { return true; @@ -132,9 +132,9 @@ public class IHLENet { return false; } - public void setOnFire(NBTTagCompound cable) + public void setOnFire(IHLCable cable) { - Set cs = IHLMod.proxy.nodeEntityRegistry.get(cable.getInteger("chainUID")); + Set cs = IHLMod.proxy.nodeEntityRegistry.get(cable.chainUID); if(cs!=null) { for(NodeEntity ne:cs) @@ -144,9 +144,9 @@ public class IHLENet { } } - public void removeCableEntities(NBTTagCompound cable) + public void removeCableEntities(IHLCable cable) { - int uid = cable.getInteger("chainUID"); + int uid = cable.chainUID; Set cs = IHLMod.proxy.nodeEntityRegistry.get(uid); if(cs!=null) { -- cgit v1.2.3