public void onGuiClosed() {
if (changed && actionManager instanceof IGuiReturnHandler && canChange()) {
for (SignalAspect aspect : SignalAspect.values()) {
actionManager.doActionOnAspect(aspect, aspects[aspect.ordinal()]);
}
PacketGuiReturn pkt = new PacketGuiReturn((IGuiReturnHandler) actionManager);
PacketDispatcher.sendToServer(pkt);
}
}