File tree Expand file tree Collapse file tree
java/ru/m9studio/ComposterTrashBox Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55import org .bukkit .event .block .Action ;
66import org .bukkit .event .player .PlayerInteractEvent ;
77import org .bukkit .inventory .ItemStack ;
8- import org .bukkit .inventory .PlayerInventory ;
9-
108public class PluginListener implements org .bukkit .event .Listener
119{
1210 @ EventHandler
@@ -15,9 +13,9 @@ public void onPlayerInteractEntityEvent(PlayerInteractEvent e)
1513 ItemStack I = e .getPlayer ().getInventory ().getItemInMainHand ();
1614 if
1715 (
16+ e .getAction () == Action .RIGHT_CLICK_BLOCK &&
1817 e .getClickedBlock ().getType () == Material .COMPOSTER &&
19- e .getAction () == Action .RIGHT_CLICK_BLOCK &&
20- I .getType () != Material .AIR
18+ I .getType () != Material .AIR
2119 )
2220 {
2321 int amount = 0 ;
Original file line number Diff line number Diff line change 11name : ComposterTrashBox
2- version : ' 1.0 .1'
2+ version : ' 1.1 .1'
33main : ru.m9studio.ComposterTrashBox.ComposterTrashBox
44api-version : ' 1.20'
55author : mina987
You can’t perform that action at this time.
0 commit comments