Skip to content

Commit

Permalink
Fully revert to vanilla movement updates when concurrent movement upd…
Browse files Browse the repository at this point in the history
…ates are disabled.

Signed-off-by: Ross Allan <rallanpcl@gmail.com>
  • Loading branch information
LunNova committed Jul 3, 2013
1 parent b6160b0 commit 7482111
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/common/nallar/patched/network/PatchPacket10Flying.java
Expand Up @@ -23,10 +23,12 @@
import net.minecraftforge.event.world.ChunkWatchEvent;

public abstract class PatchPacket10Flying extends Packet10Flying {
private static final boolean concurrent = TickThreading.instance.concurrentMovementUpdates;

@Override
@Declare
public boolean canProcessAsync() {
return TickThreading.instance.concurrentMovementUpdates;
return concurrent;
}

@Override
Expand All @@ -38,6 +40,10 @@ public void processPacket(NetHandler par1NetHandler) {
NetServerHandler nsh = (NetServerHandler) par1NetHandler;
EntityPlayerMP entityPlayerMP = nsh.playerEntity;
sendChunks(entityPlayerMP);
if (!concurrent) {
nsh.handleFlying(this);
return;
}
boolean mainThreadProcess = false;
if (nsh.teleported > 22 || entityPlayerMP.ridingEntity != null) {
if (Thread.currentThread() instanceof TcpReaderThread) {
Expand Down

0 comments on commit 7482111

Please sign in to comment.