From b35caafa0385348f6d29b91ab15f7701e9ddc766 Mon Sep 17 00:00:00 2001
From: CreepyCre <CreepyCre@gmail.com>
Date: Tue, 26 Jan 2021 21:48:40 +0100
Subject: [PATCH] fixed depth?

---
 .../dimdoors/rift/targets/PublicPocketTarget.java  |  2 +-
 .../dimdoors/pockets/json/v2/default_public.json   | 14 +++++++-------
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/main/java/org/dimdev/dimdoors/rift/targets/PublicPocketTarget.java b/src/main/java/org/dimdev/dimdoors/rift/targets/PublicPocketTarget.java
index 99a63d11..57e14577 100644
--- a/src/main/java/org/dimdev/dimdoors/rift/targets/PublicPocketTarget.java
+++ b/src/main/java/org/dimdev/dimdoors/rift/targets/PublicPocketTarget.java
@@ -34,7 +34,7 @@ public class PublicPocketTarget extends RestoringTarget {
 	public Location makeLinkTarget() {
 		VirtualLocation riftVirtualLocation = VirtualLocation.fromLocation(this.location);
 		VirtualLocation newVirtualLocation;
-		int depth = Math.max(riftVirtualLocation.getDepth(), 1);
+		int depth = riftVirtualLocation.getDepth()+1;
 		newVirtualLocation = new VirtualLocation(riftVirtualLocation.getWorld(), riftVirtualLocation.getX(), riftVirtualLocation.getZ(), depth);
 		Pocket pocket = PocketGenerator.generatePublicPocketV2(newVirtualLocation, new GlobalReference(this.location), null);
 
diff --git a/src/main/resources/data/dimdoors/pockets/json/v2/default_public.json b/src/main/resources/data/dimdoors/pockets/json/v2/default_public.json
index 3111ffac..73099e05 100644
--- a/src/main/resources/data/dimdoors/pockets/json/v2/default_public.json
+++ b/src/main/resources/data/dimdoors/pockets/json/v2/default_public.json
@@ -6,7 +6,7 @@
       "id": "public_pocket",
       "pockets": [
         {
-          "regex": "0",
+          "regex": "6",
           "pocket": {
             "virtual_type": "schematic",
             "id": "public_pocket_0",
@@ -15,7 +15,7 @@
           }
         },
         {
-          "regex": "1",
+          "regex": "7",
           "pocket": {
             "virtual_type": "schematic",
             "id": "public_pocket_1",
@@ -24,7 +24,7 @@
           }
         },
         {
-          "regex": "2",
+          "regex": "8",
           "pocket": {
             "virtual_type": "schematic",
             "id": "public_pocket_2",
@@ -33,7 +33,7 @@
           }
         },
         {
-          "regex": "3",
+          "regex": "9",
           "pocket": {
             "virtual_type": "schematic",
             "id": "public_pocket_3",
@@ -42,7 +42,7 @@
           }
         },
         {
-          "regex": "4",
+          "regex": "10",
           "pocket": {
             "virtual_type": "schematic",
             "id": "public_pocket_4",
@@ -51,7 +51,7 @@
           }
         },
         {
-          "regex": "5",
+          "regex": "11",
           "pocket": {
             "virtual_type": "schematic",
             "id": "public_pocket_5",
@@ -60,7 +60,7 @@
           }
         },
         {
-          "regex": "6",
+          "regex": "12",
           "pocket": {
             "virtual_type": "schematic",
             "id": "public_pocket_6",