Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Commit

Permalink
Fix disable interactions system
Browse files Browse the repository at this point in the history
  • Loading branch information
0ffz committed Jun 28, 2023
1 parent 928e490 commit d393452
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import com.mineinabyss.geary.datatypes.family.family
import com.mineinabyss.geary.papermc.bridge.components.Interacted
import com.mineinabyss.geary.systems.GearyListener
import com.mineinabyss.geary.systems.accessors.EventScope
import com.mineinabyss.geary.systems.accessors.SourceScope
import com.mineinabyss.geary.systems.accessors.TargetScope
import com.mineinabyss.geary.systems.accessors.building.map
import org.bukkit.event.Cancellable
import org.bukkit.event.Event
Expand All @@ -15,7 +15,7 @@ import org.bukkit.event.Event
class DisableItemInteractionsSystem : GearyListener() {
private val EventScope.bukkit by get<Event>().map { it as? Cancellable }
private val EventScope.interacted by family { has<Interacted>() }
private val SourceScope.noVanilla by family { has<DisableItemInteractions>() }
private val TargetScope.noVanilla by family { has<DisableItemInteractions>() }

@Handler
fun onPlace(event: EventScope) {
Expand Down

0 comments on commit d393452

Please sign in to comment.