fixed depth?
This commit is contained in:
parent
43c5ebeeeb
commit
b35caafa03
2 changed files with 8 additions and 8 deletions
src/main
java/org/dimdev/dimdoors/rift/targets
resources/data/dimdoors/pockets/json/v2
|
@ -34,7 +34,7 @@ public class PublicPocketTarget extends RestoringTarget {
|
||||||
public Location makeLinkTarget() {
|
public Location makeLinkTarget() {
|
||||||
VirtualLocation riftVirtualLocation = VirtualLocation.fromLocation(this.location);
|
VirtualLocation riftVirtualLocation = VirtualLocation.fromLocation(this.location);
|
||||||
VirtualLocation newVirtualLocation;
|
VirtualLocation newVirtualLocation;
|
||||||
int depth = Math.max(riftVirtualLocation.getDepth(), 1);
|
int depth = riftVirtualLocation.getDepth()+1;
|
||||||
newVirtualLocation = new VirtualLocation(riftVirtualLocation.getWorld(), riftVirtualLocation.getX(), riftVirtualLocation.getZ(), depth);
|
newVirtualLocation = new VirtualLocation(riftVirtualLocation.getWorld(), riftVirtualLocation.getX(), riftVirtualLocation.getZ(), depth);
|
||||||
Pocket pocket = PocketGenerator.generatePublicPocketV2(newVirtualLocation, new GlobalReference(this.location), null);
|
Pocket pocket = PocketGenerator.generatePublicPocketV2(newVirtualLocation, new GlobalReference(this.location), null);
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"id": "public_pocket",
|
"id": "public_pocket",
|
||||||
"pockets": [
|
"pockets": [
|
||||||
{
|
{
|
||||||
"regex": "0",
|
"regex": "6",
|
||||||
"pocket": {
|
"pocket": {
|
||||||
"virtual_type": "schematic",
|
"virtual_type": "schematic",
|
||||||
"id": "public_pocket_0",
|
"id": "public_pocket_0",
|
||||||
|
@ -15,7 +15,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"regex": "1",
|
"regex": "7",
|
||||||
"pocket": {
|
"pocket": {
|
||||||
"virtual_type": "schematic",
|
"virtual_type": "schematic",
|
||||||
"id": "public_pocket_1",
|
"id": "public_pocket_1",
|
||||||
|
@ -24,7 +24,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"regex": "2",
|
"regex": "8",
|
||||||
"pocket": {
|
"pocket": {
|
||||||
"virtual_type": "schematic",
|
"virtual_type": "schematic",
|
||||||
"id": "public_pocket_2",
|
"id": "public_pocket_2",
|
||||||
|
@ -33,7 +33,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"regex": "3",
|
"regex": "9",
|
||||||
"pocket": {
|
"pocket": {
|
||||||
"virtual_type": "schematic",
|
"virtual_type": "schematic",
|
||||||
"id": "public_pocket_3",
|
"id": "public_pocket_3",
|
||||||
|
@ -42,7 +42,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"regex": "4",
|
"regex": "10",
|
||||||
"pocket": {
|
"pocket": {
|
||||||
"virtual_type": "schematic",
|
"virtual_type": "schematic",
|
||||||
"id": "public_pocket_4",
|
"id": "public_pocket_4",
|
||||||
|
@ -51,7 +51,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"regex": "5",
|
"regex": "11",
|
||||||
"pocket": {
|
"pocket": {
|
||||||
"virtual_type": "schematic",
|
"virtual_type": "schematic",
|
||||||
"id": "public_pocket_5",
|
"id": "public_pocket_5",
|
||||||
|
@ -60,7 +60,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"regex": "6",
|
"regex": "12",
|
||||||
"pocket": {
|
"pocket": {
|
||||||
"virtual_type": "schematic",
|
"virtual_type": "schematic",
|
||||||
"id": "public_pocket_6",
|
"id": "public_pocket_6",
|
||||||
|
|
Loading…
Add table
Reference in a new issue