Skip to content

Commit

Permalink
Fix #169
Browse files Browse the repository at this point in the history
  • Loading branch information
Victorious3 committed Nov 17, 2015
1 parent ea889b8 commit b01f8ee
Show file tree
Hide file tree
Showing 4 changed files with 148 additions and 146 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
modVersion = 0.9r37b
modVersion = 0.9r37c
mcVersion = 1.7.10

cclVersion = 1.1.3.140
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,13 @@ public void setOutputToSide(ForgeDirection dir, int frequency, boolean output) {
@Override
public boolean receiveClientEvent(int id, int par) {
if (id == 1) {
// Update GUI
printerLocation = ForgeDirection.getOrientation(par);
GuiScreen gui = Minecraft.getMinecraft().currentScreen;
if (gui instanceof GuiCAD) {
((GuiCAD) gui).refreshPrinter();
if (worldObj.isRemote) {
// Update GUI
printerLocation = ForgeDirection.getOrientation(par);
GuiScreen gui = Minecraft.getMinecraft().currentScreen;
if (gui instanceof GuiCAD) {
((GuiCAD) gui).refreshPrinter();
}
}
return true;
} else {
Expand Down
Loading

0 comments on commit b01f8ee

Please sign in to comment.