Skip to content

Commit

Permalink
Oops?
Browse files Browse the repository at this point in the history
  • Loading branch information
andantet committed Sep 4, 2024
1 parent 6b9ef2f commit caf0d77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ yarn_build=7
loader_version=0.15.11

# Mod Properties
mod_version=1.7.1
mod_version=1.7.2
maven_group=net.mcbrawls
mod_id=blueprint

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ data class PlacedBlueprint(
/**
* Gets the position of a point region.
*/
fun PlacedBlueprint.getPointRegionPos(id: String): Vec3d {
fun getPointRegionPos(id: String): Vec3d {
val region = getRegion(id)
val pointRegion = region as? PointRegion ?: throw IllegalArgumentException("Not a point region: $id")
return pointRegion.pointPosition
Expand All @@ -113,7 +113,7 @@ data class PlacedBlueprint(
/**
* Gets the block position of a point region.
*/
fun PlacedBlueprint.getPointRegionBlockPos(id: String, function: (Vec3d) -> BlockPos = BlockPos::ofFloored): BlockPos {
fun getPointRegionBlockPos(id: String, function: (Vec3d) -> BlockPos = BlockPos::ofFloored): BlockPos {
val pos = getPointRegionPos(id)
return function.invoke(pos)
}
Expand Down

0 comments on commit caf0d77

Please sign in to comment.