More fixes
This commit is contained in:
@@ -233,4 +233,14 @@ public abstract class TileSlave extends TileBase implements INetworkSlave, ISync
|
|||||||
public boolean hasCapability(Capability<?> capability, EnumFacing facing) {
|
public boolean hasCapability(Capability<?> capability, EnumFacing facing) {
|
||||||
return capability == RefinedStorageCapabilities.NETWORK_SLAVE_CAPABILITY || super.hasCapability(capability, facing);
|
return capability == RefinedStorageCapabilities.NETWORK_SLAVE_CAPABILITY || super.hasCapability(capability, facing);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return pos.hashCode();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object other) {
|
||||||
|
return other instanceof TileSlave && ((TileSlave) other).getPos().equals(pos);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -152,7 +152,8 @@ public class TileController extends TileBase implements INetworkMaster, IEnergyR
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (!slaves.isEmpty()) {
|
} else if (!slaves.isEmpty()) {
|
||||||
disconnectAll();
|
disconnectSlaves();
|
||||||
|
|
||||||
updateSlaves();
|
updateSlaves();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -207,6 +208,14 @@ public class TileController extends TileBase implements INetworkMaster, IEnergyR
|
|||||||
slavesToRemove.add(slave);
|
slavesToRemove.add(slave);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void disconnectSlaves() {
|
||||||
|
for (INetworkSlave slave : getSlaves()) {
|
||||||
|
slave.disconnect(worldObj);
|
||||||
|
}
|
||||||
|
|
||||||
|
slaves.clear();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public IGridHandler getGridHandler() {
|
public IGridHandler getGridHandler() {
|
||||||
return gridHandler;
|
return gridHandler;
|
||||||
@@ -217,12 +226,9 @@ public class TileController extends TileBase implements INetworkMaster, IEnergyR
|
|||||||
return wirelessGridHandler;
|
return wirelessGridHandler;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void disconnectAll() {
|
@Override
|
||||||
for (INetworkSlave slave : getSlaves()) {
|
public void onChunkUnload() {
|
||||||
slave.disconnect(worldObj);
|
disconnectSlaves();
|
||||||
}
|
|
||||||
|
|
||||||
slaves.clear();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -55,8 +55,6 @@ misc.refinedstorage:clear=Clear
|
|||||||
misc.refinedstorage:cancel_all=Cancel All
|
misc.refinedstorage:cancel_all=Cancel All
|
||||||
misc.refinedstorage:priority=Priority
|
misc.refinedstorage:priority=Priority
|
||||||
|
|
||||||
misc.refinedstorage:no_network=This Controller isn't associated with any storage network. If you just upgraded to 0.7.17, this is absolutely normal. In that case, a simple one-time break and replace should fix the issue.
|
|
||||||
|
|
||||||
sidebutton.refinedstorage:compare.1=Compare Damage
|
sidebutton.refinedstorage:compare.1=Compare Damage
|
||||||
sidebutton.refinedstorage:compare.2=Compare NBT
|
sidebutton.refinedstorage:compare.2=Compare NBT
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user