Skip to content

Commit

Permalink
Don't use experimental spigot-api
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakubk15 committed Oct 22, 2023
1 parent 6ab80e0 commit 7b1770c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ repositories {

dependencies {
// minecraft development api
compileOnly("org.spigotmc:spigot-api:1.20.2-experimental-SNAPSHOT")
compileOnly("org.spigotmc:spigot-api:1.20.2-R0.1-SNAPSHOT")
implementation("net.kyori:adventure-platform-bukkit:4.3.1")
implementation("net.kyori:adventure-text-minimessage:4.14.0")
implementation("dev.rollczi.litecommands:bukkit-adventure:2.8.9")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import com.eternalcode.parcellockers.shared.Position;
import com.eternalcode.parcellockers.shared.PositionAdapter;
import net.kyori.adventure.text.minimessage.MiniMessage;
import org.bukkit.block.BlockType;
import org.bukkit.Material;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
Expand All @@ -30,13 +30,13 @@ public LockerInteractionController(LockerRepositoryImpl parcelLockerRepositoryIm
@EventHandler
public void onInventoryOpen(PlayerInteractEvent event) {
Player player = event.getPlayer();
Position blockPos = PositionAdapter.convert(player.getTargetBlock(Set.of(BlockType.AIR), 4).getLocation());
Position blockPos = PositionAdapter.convert(player.getTargetBlock(Set.of(Material.AIR), 4).getLocation());

if (event.getAction() != Action.RIGHT_CLICK_BLOCK) {
return;
}

if (event.getClickedBlock().getType() != BlockType.CHEST) {
if (event.getClickedBlock().getType() != Material.CHEST) {
return;
}

Expand Down

0 comments on commit 7b1770c

Please sign in to comment.