Skip to content

Commit

Permalink
V1.0.11 (#23)
Browse files Browse the repository at this point in the history
* fixed the pressure plate from not working
  • Loading branch information
Tofpu committed Apr 23, 2022
1 parent 71051b4 commit eb3aeb6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
}

group = "io.tofpu.speedbridge2"
version = "1.0.10"
version = "1.0.11"

tasks {
compileJava {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import io.tofpu.speedbridge2.listener.wrapper.wrappers.PlayerInteractEventWrapper;
import io.tofpu.speedbridge2.model.player.PlayerService;
import org.bukkit.Bukkit;
import org.bukkit.Material;
import org.bukkit.event.Event;
import org.bukkit.event.EventHandler;
import org.bukkit.event.block.Action;
Expand Down Expand Up @@ -60,10 +59,8 @@ private void onPlayerInteract(final @NotNull PlayerInteractEvent event) {
return;
}

// if the clicked block happen to be a soil block, or any
// other block in general, then return
if (event.getClickedBlock()
.getType() != Material.AIR) {
// if the clicked block type doesn't happen to be a pressure plate, return
if (!event.getClickedBlock().getType().name().contains("PLATE")) {
return;
}

Expand Down

0 comments on commit eb3aeb6

Please sign in to comment.