fixed depth?

This commit is contained in:
CreepyCre 2021-01-26 21:48:40 +01:00
parent 43c5ebeeeb
commit b35caafa03
2 changed files with 8 additions and 8 deletions

View file

@ -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);

View file

@ -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",