split client and server 3
This commit is contained in:
parent
b17efb5b07
commit
d37bb7f6cc
7 changed files with 118 additions and 41 deletions
|
@ -184,7 +184,7 @@ public class ClientPlayer extends NetHandler implements IClientPlayer
|
|||
NetHandler.checkThread(packetIn, this, this.gameController);
|
||||
this.gameController.charEditor = packetIn.isInEditor();
|
||||
this.gameController.controller = new PlayerController(this.gameController, this);
|
||||
this.clientWorldController = new WorldClient(this.gameController.debugWorld, packetIn.getDimension());
|
||||
this.clientWorldController = new WorldClient(this.gameController, this.gameController.debugWorld, packetIn.getDimension());
|
||||
// this.gameController.gameSettings.difficulty = packetIn.getDifficulty();
|
||||
this.gameController.loadWorld(this.clientWorldController, packetIn.getEntityType());
|
||||
// this.gameController.thePlayer.dimension = this.clientWorldController.dimension.getDimensionId();
|
||||
|
@ -1046,7 +1046,7 @@ public class ClientPlayer extends NetHandler implements IClientPlayer
|
|||
// this.travelSound = "portal.travel";
|
||||
// }
|
||||
// Scoreboard scoreboard = this.clientWorldController.getScoreboard();
|
||||
this.clientWorldController = new WorldClient(this.gameController.debugWorld, dim);
|
||||
this.clientWorldController = new WorldClient(this.gameController, this.gameController.debugWorld, dim);
|
||||
// this.clientWorldController.setWorldScoreboard(scoreboard);
|
||||
this.gameController.loadWorld(this.clientWorldController, packetIn.getEntityType());
|
||||
// this.gameController.thePlayer.dimension = dim.getDimensionId();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue