Skip to content

Commit

Permalink
Merge pull request #69 from Thorfusion/68-bug-crash-with-quantum-enta…
Browse files Browse the repository at this point in the history
…ngloporter

crash with quantum entangloporter #68
  • Loading branch information
DrParadox7 committed Dec 23, 2022
2 parents 55b724b + f4badd9 commit 34914c2
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -101,6 +101,8 @@ public void initGui()
buttonList.add(protectedButton);
buttonList.add(setButton);
buttonList.add(deleteButton);

access = ISecurityTile.SecurityMode.TRUSTED;
}

public void setFrequency(String freq)
Expand All @@ -113,6 +115,9 @@ public void setFrequency(String freq)
ArrayList data = new ArrayList();
data.add(0);
data.add(freq);
if (access == null) {
return;
}
data.add(access.ordinal());

Mekanism.packetHandler.sendToServer(new TileEntityMessage(Coord4D.get(tileEntity), data));
Expand Down

0 comments on commit 34914c2

Please sign in to comment.