Skip to content

Commit aa45991

Browse files
committed
remove unused bucket setting and incomplete logic
1 parent ead7fab commit aa45991

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

  • src/main/kotlin/com/lambda/module/modules/world

src/main/kotlin/com/lambda/module/modules/world/AirPlace.kt

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,7 @@ import com.lambda.util.NamedEnum
4242
import com.lambda.util.math.setAlpha
4343
import com.lambda.util.math.vec3d
4444
import net.minecraft.block.BlockState
45-
import net.minecraft.fluid.FlowableFluid
4645
import net.minecraft.item.BlockItem
47-
import net.minecraft.item.BucketItem
4846
import net.minecraft.item.DebugStickItem
4947
import net.minecraft.item.ItemPlacementContext
5048
import net.minecraft.state.property.Properties
@@ -69,7 +67,6 @@ object AirPlace : Module(
6967
}
7068

7169
private var distance by setting("Distance", 4.0, 1.0..7.0, 0.01).group(Group.General)
72-
private val buckets by setting("Buckets", true, "Enables air placement for buckets filled with fluids").group(Group.General)
7370
private val distanceScrollBind by setting("Distance Scroll Bind", Bind(KeyCode.Unbound.code, GLFW.GLFW_MOD_CONTROL), "Allows you to hold the given key and scroll to adjust distance").group(Group.General)
7471
private val rotationScrollBind by setting("Rotation Scroll Bind", Bind(KeyCode.Unbound.code, GLFW.GLFW_MOD_ALT), "Allows you to hold the given key and scroll to adjust the rotation of the block you're placing").group(Group.General)
7572

@@ -124,15 +121,6 @@ object AirPlace : Module(
124121
setPosAndState(placementContext.blockPos, blockItem.getPlacementState(placementContext))
125122
return@listen
126123
}
127-
128-
if (buckets) run bucket@{
129-
val item = selectedStack.item
130-
if (item !is BucketItem) return@bucket
131-
val fluid = item.fluid as? FlowableFluid ?: return@bucket
132-
if (item.fluid !is FlowableFluid) return@bucket
133-
placementPos = getHitResult().blockPos
134-
placementState = fluid.defaultState.blockState
135-
}
136124
setPosAndState()
137125
return@listen
138126
}

0 commit comments

Comments
 (0)