Mobile manual aiming / Mobile control changes [UNSTABLE]
This commit is contained in:
@@ -237,12 +237,10 @@ public class Net{
|
||||
*/
|
||||
public void handleClientReceived(Object object){
|
||||
|
||||
if(object instanceof StreamBegin){
|
||||
StreamBegin b = (StreamBegin)object;
|
||||
if(object instanceof StreamBegin b){
|
||||
streams.put(b.id, currentStream = new StreamBuilder(b));
|
||||
|
||||
}else if(object instanceof StreamChunk){
|
||||
StreamChunk c = (StreamChunk)object;
|
||||
}else if(object instanceof StreamChunk c){
|
||||
StreamBuilder builder = streams.get(c.id);
|
||||
if(builder == null){
|
||||
throw new RuntimeException("Received stream chunk without a StreamBegin beforehand!");
|
||||
|
||||
Reference in New Issue
Block a user