Skip to content

Commit 8243400

Browse files
committed
add comments
1 parent e9fc0fc commit 8243400

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/gregtech/api/metatileentity/MetaTileEntity.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,6 +1084,8 @@ public void receiveCustomData(int dataId, @NotNull PacketBuffer buf) {
10841084
GTLog.logger.warn("Could not find MTETrait for id: {} at position {}.", traitNetworkId, getPos());
10851085
} else {
10861086
trait.receiveCustomData(internalId, buf);
1087+
1088+
// this should be fine, as nothing else is read after this
10871089
ISyncedTileEntity.checkCustomData(internalId, buf, trait);
10881090
}
10891091
} else if (dataId == COVER_ATTACHED_MTE) {
@@ -1101,6 +1103,8 @@ public void receiveCustomData(int dataId, @NotNull PacketBuffer buf) {
11011103
int internalId = buf.readVarInt();
11021104
if (cover != null) {
11031105
cover.readCustomData(internalId, buf);
1106+
1107+
// this should be fine, as nothing else is read after this
11041108
ISyncedTileEntity.checkCustomData(internalId, buf, cover);
11051109
}
11061110
} else if (dataId == UPDATE_SOUND_MUFFLED) {

0 commit comments

Comments
 (0)