fixed spawning issues in tetris
This commit is contained in:
1 parent
8dc165952a
commit
89b81a3288
1 file changed
+1
-2
+1
-2
@@ -147,10 +147,10 @@ class Tetris extends StatelessGame {
|
||||
|
||||
TetrisGame tetrisGame = this.tetrisGames.get(p);
|
||||
|
||||
p.teleport(tetrisGame.getPlayerSpawnPosition());
|
||||
tetrisGame.sidebar.addViewer(p);
|
||||
|
||||
MinecraftServer.getSchedulerManager().scheduleTask(() -> {
|
||||
p.teleport(tetrisGame.getPlayerSpawnPosition());
|
||||
Entity ghostBlock = new Entity(EntityType.BLOCK_DISPLAY);
|
||||
((BlockDisplayMeta) ghostBlock.getEntityMeta()).setBlockState(Block.AIR);
|
||||
ghostBlock.setNoGravity(true);
|
||||
@@ -159,7 +159,6 @@ class Tetris extends StatelessGame {
|
||||
return TaskSchedule.stop();
|
||||
}, TaskSchedule.nextTick());
|
||||
|
||||
|
||||
return super.onPlayerJoin(p);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user