Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
teraprath committed Dec 2, 2024
1 parent 36626cc commit 024b26b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
}

group = 'dev.mending.sm'
version = '1.0.0'
version = '1.0.1'

repositories {
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.block.Action;
import org.bukkit.event.player.PlayerInteractEvent;
import org.bukkit.inventory.ItemStack;

Expand All @@ -19,6 +20,10 @@ public PlayerInteractListener(int restoreHealth) {
@EventHandler
public void onPlayerInteract(PlayerInteractEvent e) {

if (e.getAction().equals(Action.LEFT_CLICK_AIR) || e.getAction().equals(Action.LEFT_CLICK_BLOCK)) {
return;
}

if (e.getItem() != null && e.getItem().getType().equals(Material.MUSHROOM_STEW)) {

final Player player = e.getPlayer();
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: SoupMechanics
version: '1.0.0'
version: '1.0.1'
main: dev.mending.sm.SoupMechanics
api-version: '1.21'
authors: [ MrMending ]
Expand Down

0 comments on commit 024b26b

Please sign in to comment.