Files
ReplayModCinematic/src/main/java/eu/crushedpixel/replaymod/replay/OpenEmbeddedChannel.java
johni0702 a058497727 Fix all warnings
Add and make use of Lombok
Remove Mojang API
Remove ZipFileUtils
Remove StreamTools in favor of Apache IOUtils
Keyframe should be abstract all derivatives final
Replace clone in Keyframe with copy
Move some constants from GuiReplaySetttings to GuiConstants
2015-06-29 21:45:37 +02:00

31 lines
726 B
Java
Executable File

package eu.crushedpixel.replaymod.replay;
import io.netty.channel.ChannelFuture;
import io.netty.channel.embedded.EmbeddedChannel;
import net.minecraft.network.NetworkManager;
public class OpenEmbeddedChannel extends EmbeddedChannel {
private boolean ignoreClose = false;
public OpenEmbeddedChannel(NetworkManager networkManager) {
super(networkManager);
}
@Override
public boolean finish() {
System.out.println("wanted to finish");
ignoreClose = true;
return super.finish();
}
@Override
public ChannelFuture close() {
if(ignoreClose) {
ignoreClose = false;
return null;
}
return pipeline().close();
}
}