Adjust NetworkEvent#enqueueWork to match vanilla logic

In singleplayer our packet work could get delayed until the next tick,
breaking the expectation of packet read order. Fixes that using
NetworkHooks.openGui would result in missing inventory data on the client
This commit is contained in:
tterrag committed 2019-06-10 00:13:27 -04:00
1 parent 1434419e47
commit da22fd40bf
2 files changed
+14 -9

No files matched your search

@@ -331,6 +331,9 @@ protected net.minecraft.tileentity.HopperTileEntity func_145887_i()Z # updateHop
# DataFixer
public net.minecraft.util.datafix.DataFixer field_188262_d # version
# ThreadTaskExecutor
public net.minecraft.util.concurrent.ThreadTaskExecutor func_213165_a(Ljava/lang/Runnable;)Ljava/util/concurrent/CompletableFuture; # func_213165_a
# AbstractSkeletonEntity
protected net.minecraft.entity.monster.AbstractSkeletonEntity func_190727_o()Lnet/minecraft/util/SoundEvent; # getStepSound - make AbstractSkeletonEntity implementable