Skip to content

Commit 8d359da

Browse files
committedJan 2, 2015
All Bus Interfaces on Beacons TEs now save and load themselves.
1 parent 34da00a commit 8d359da

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed
 

‎src/main/java/lordfokas/stargatetech2/transport/TileBeaconConsole.java

+3-6
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,16 @@ public class TileBeaconConsole extends TileBeacon{
1111

1212
@Override
1313
protected void readNBT(NBTTagCompound nbt) {
14-
// TODO Auto-generated method stub
15-
14+
iface.readFromNBT(nbt, "interface");
1615
}
1716

1817
@Override
1918
protected void writeNBT(NBTTagCompound nbt) {
20-
// TODO Auto-generated method stub
21-
19+
iface.writeToNBT(nbt, "interface");
2220
}
2321

2422
@Override
2523
public IBusInterface[] getInterfaces(int side) {
2624
return new IBusInterface[]{iface};
2725
}
28-
29-
}
26+
}

‎src/main/java/lordfokas/stargatetech2/transport/TileBeaconMatterGrid.java

+2-4
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,12 @@ public class TileBeaconMatterGrid extends TileBeacon {
1111

1212
@Override
1313
protected void readNBT(NBTTagCompound nbt) {
14-
// TODO Auto-generated method stub
15-
14+
iface.readFromNBT(nbt, "interface");
1615
}
1716

1817
@Override
1918
protected void writeNBT(NBTTagCompound nbt) {
20-
// TODO Auto-generated method stub
21-
19+
iface.writeToNBT(nbt, "interface");
2220
}
2321

2422
@Override

0 commit comments

Comments
 (0)
Please sign in to comment.