less instant disconnect, more broken multiplayer

This commit is contained in:
Anuken
2020-06-23 21:07:20 -04:00
parent d095008e7c
commit db2f61ec29
3 changed files with 8 additions and 3 deletions

View File

@@ -633,7 +633,10 @@ public class NetServer implements ApplicationListener{
}
//reset player to previous synced position so it gets interpolated
unit.set(prevx, prevy);
//the server does not interpolate
if(!headless){
unit.set(prevx, prevy);
}
//write sync data to the buffer
fbuffer.limit(20);