mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-11-08 09:23:00 +00:00
Use a fake network handler too
It appears that WB opens containers manually, and thus all of our stubs network stubs are entirely ignored. Thus the only solution here is to stub out the whole network handler code. Thankfully this is simple enough - we do the same for Plethora and 1.14. Fixes #328
This commit is contained in:
@@ -8,6 +8,7 @@ package dan200.computercraft.shared.turtle.core;
|
||||
|
||||
import com.mojang.authlib.GameProfile;
|
||||
import dan200.computercraft.api.turtle.ITurtleAccess;
|
||||
import dan200.computercraft.shared.util.FakeNetHandler;
|
||||
import dan200.computercraft.shared.util.InventoryUtil;
|
||||
import dan200.computercraft.shared.util.WorldUtil;
|
||||
import net.minecraft.entity.Entity;
|
||||
@@ -46,11 +47,13 @@ public class TurtlePlayer extends FakePlayer
|
||||
public TurtlePlayer( World world )
|
||||
{
|
||||
super( (WorldServer) world, DEFAULT_PROFILE );
|
||||
connection = new FakeNetHandler( this );
|
||||
}
|
||||
|
||||
private TurtlePlayer( ITurtleAccess turtle )
|
||||
{
|
||||
super( (WorldServer) turtle.getWorld(), getProfile( turtle.getOwningPlayer() ) );
|
||||
connection = new FakeNetHandler( this );
|
||||
setState( turtle );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user