Skip to content

Commit

Permalink
Relic_Structure Addition(fix)
Browse files Browse the repository at this point in the history
  • Loading branch information
RS-gty committed Sep 8, 2024
1 parent 896724a commit 5273867
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,16 +97,7 @@ public void postProcess(
ChunkPos pChunkPos,
BlockPos pPos
) {
ResourceLocation resourceLocation = new ResourceLocation(this.templateName);
StructurePlaceSettings structureplacesettings = makeSettings(this.placeSettings.getRotation(), resourceLocation);
BlockPos blockpos = ModEndRelicStructurePieces.OFFSETS.get(resourceLocation);
BlockPos blockpos1 = this.templatePosition
.offset(StructureTemplate.calculateRelativePosition(structureplacesettings, new BlockPos(3 - blockpos.getX(), 0, -blockpos.getZ())));
int i = pLevel.getHeight(Heightmap.Types.WORLD_SURFACE_WG, blockpos1.getX(), blockpos1.getZ());
BlockPos blockpos2 = this.templatePosition;
this.templatePosition = this.templatePosition.offset(0, i - 90 - 1, 0);
super.postProcess(pLevel, pStructureManager, pGenerator, pRandom, pBox, pChunkPos, pPos);
this.templatePosition = blockpos2;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -97,16 +97,7 @@ public void postProcess(
ChunkPos pChunkPos,
BlockPos pPos
) {
ResourceLocation resourceLocation = new ResourceLocation(this.templateName);
StructurePlaceSettings structureplacesettings = makeSettings(this.placeSettings.getRotation(), resourceLocation);
BlockPos blockpos = ModNetherRelicStructurePieces.OFFSETS.get(resourceLocation);
BlockPos blockpos1 = this.templatePosition
.offset(StructureTemplate.calculateRelativePosition(structureplacesettings, new BlockPos(3 - blockpos.getX(), 0, -blockpos.getZ())));
int i = pLevel.getHeight(Heightmap.Types.WORLD_SURFACE_WG, blockpos1.getX(), blockpos1.getZ());
BlockPos blockpos2 = this.templatePosition;
this.templatePosition = this.templatePosition.offset(0, i - 90 - 1, 0);
super.postProcess(pLevel, pStructureManager, pGenerator, pRandom, pBox, pChunkPos, pPos);
this.templatePosition = blockpos2;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -97,16 +97,7 @@ public void postProcess(
ChunkPos pChunkPos,
BlockPos pPos
) {
ResourceLocation resourceLocation = new ResourceLocation(this.templateName);
StructurePlaceSettings structureplacesettings = makeSettings(this.placeSettings.getRotation(), resourceLocation);
BlockPos blockpos = ModSoulRelicStructurePieces.OFFSETS.get(resourceLocation);
BlockPos blockpos1 = this.templatePosition
.offset(StructureTemplate.calculateRelativePosition(structureplacesettings, new BlockPos(3 - blockpos.getX(), 0, -blockpos.getZ())));
int i = pLevel.getHeight(Heightmap.Types.WORLD_SURFACE_WG, blockpos1.getX(), blockpos1.getZ());
BlockPos blockpos2 = this.templatePosition;
this.templatePosition = this.templatePosition.offset(0, i - 90 - 1, 0);
super.postProcess(pLevel, pStructureManager, pGenerator, pRandom, pBox, pChunkPos, pPos);
this.templatePosition = blockpos2;
}
}
}

0 comments on commit 5273867

Please sign in to comment.