Skip to content

Commit

Permalink
refactor: code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Boy0000 committed May 15, 2024
1 parent 9b79a97 commit 5264a44
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[versions]
gearyPaper = "0.30.1-dev.12"
gearyPaper = "0.30.1-dev.13"
guiy="0.9.4"

[libraries]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@ import org.bukkit.event.player.PlayerSwapHandItemsEvent
import org.bukkit.inventory.EquipmentSlot
import org.bukkit.potion.PotionEffect
import org.bukkit.potion.PotionEffectType.MINING_FATIGUE
import kotlin.Int
import kotlin.apply
import kotlin.let
import kotlin.run
import kotlin.takeIf
import kotlin.time.Duration
import kotlin.to

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import org.bukkit.entity.ItemDisplay
fun GearyModule.furnitureHitboxSetter() = observe<OnSet>()
.involving(query<ItemDisplay, BlockyFurniture>())
.exec { (itemDisplay, _) ->
val itemDisplay = itemDisplay

blocky.plugin.launch(blocky.plugin.minecraftDispatcher) {
delay(1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ import org.bukkit.entity.ItemDisplay
fun GearyModule.createFurnitureSeatSetter() = observe<OnSet>()
.involving(query<ItemDisplay, BlockyFurniture, BlockySeats>())
.exec { (itemDisplay, _, seats) ->
val itemDisplay = itemDisplay
val seats = seats

FurnitureHelpers.clearFurnitureSeats(itemDisplay)
Bukkit.getScheduler().scheduleSyncDelayedTask(blocky.plugin, {
FurnitureHelpers.spawnFurnitureSeat(itemDisplay, seats)
Expand Down

0 comments on commit 5264a44

Please sign in to comment.