From 720d3c8d6538a42e433315629fadbd527b6adfb5 Mon Sep 17 00:00:00 2001
From: lars <larslukasneuhaus@gmx.de>
Date: Thu, 24 Oct 2024 23:10:09 +0200
Subject: [PATCH] changed Player spawn position

---
 .../stateless/types/tetris/game/Playfield.java     | 14 +-------------
 1 file changed, 1 insertion(+), 13 deletions(-)

diff --git a/src/main/java/eu/mhsl/minenet/minigames/instance/game/stateless/types/tetris/game/Playfield.java b/src/main/java/eu/mhsl/minenet/minigames/instance/game/stateless/types/tetris/game/Playfield.java
index b5dd3a1..edf4ddb 100644
--- a/src/main/java/eu/mhsl/minenet/minigames/instance/game/stateless/types/tetris/game/Playfield.java
+++ b/src/main/java/eu/mhsl/minenet/minigames/instance/game/stateless/types/tetris/game/Playfield.java
@@ -25,8 +25,7 @@ public class Playfield {
     }
 
     public Pos getPlayerSpawnPosition() {
-//        return this.lowerLeftCorner.add(6, 9+((double) 3/16), 20).withView(180, 0);
-        return this.lowerLeftCorner.add(6, 12, 25).withView(180, 0);
+        return this.lowerLeftCorner.add(6, 9, 20).withView(180, 0);
     }
 
     public Pos getTetrominoSpawnPosition() {
@@ -64,10 +63,6 @@ public class Playfield {
         // hold position:
         for(int x = 0; x < 4; x++) {
             for(int y = 0; y < 4; y++) {
-//                if(x==0 || x==5 || y==0 || y==5) {
-//                    batch.setBlock(this.getHoldPosition().add(x-2, y-2, 0), Block.BLACK_CONCRETE);
-//                    batch.setBlock(this.getHoldPosition().add(x-2, y-2, -1), Block.BLACK_CONCRETE);
-//                }
                 batch.setBlock(this.getHoldPosition().add(x-1, y-1, -1), Block.QUARTZ_BLOCK);
             }
         }
@@ -75,10 +70,6 @@ public class Playfield {
         // next positions:
         for(int x = 0; x < 4; x++) {
             for(int y = -4*this.nextTetrominoesCount+4; y < 4; y++) {
-//                if(x==0 || x==5 || y==-4*this.nextTetrominoesCount+4 || y==5) {
-//                    batch.setBlock(this.getNextPosition().add(x-2, y-2, 0), Block.BLACK_CONCRETE);
-//                    batch.setBlock(this.getNextPosition().add(x-2, y-2, -1), Block.BLACK_CONCRETE);
-//                }
                 batch.setBlock(this.getNextPosition().add(x-1, y-1, -1), Block.QUARTZ_BLOCK);
             }
         }
@@ -88,9 +79,6 @@ public class Playfield {
         batch.setBlock(getPlayerSpawnPosition().sub(1, 1, 1), Block.STONE);
         batch.setBlock(getPlayerSpawnPosition().sub(0, 1, 1), Block.STONE);
 
-//        batch.setBlock(getPlayerSpawnPosition(), Block.IRON_TRAPDOOR.withProperty("half", "bottom"));
-//        batch.setBlock(getPlayerSpawnPosition().add(0, 1, 0), Block.IRON_TRAPDOOR.withProperty("half", "top"));
-
         BatchUtil.loadAndApplyBatch(batch, this.instance, () -> {});
     }