mirror of
https://github.com/GeorgH93/Minepacks.git
synced 2024-12-04 14:03:24 +01:00
Fix error on CraftBukkit
This commit is contained in:
parent
7f6faa95b5
commit
e4823ff592
@ -36,7 +36,7 @@
|
||||
<dependency>
|
||||
<groupId>at.pcgamingfreaks</groupId>
|
||||
<artifactId>PluginLib</artifactId>
|
||||
<version>1.0.22-SNAPSHOT</version>
|
||||
<version>1.0.23-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<!-- BadRabbit -->
|
||||
<dependency>
|
||||
|
@ -20,6 +20,7 @@
|
||||
import at.pcgamingfreaks.Bukkit.ItemNameResolver;
|
||||
import at.pcgamingfreaks.Bukkit.Message.Message;
|
||||
import at.pcgamingfreaks.Bukkit.MinecraftMaterial;
|
||||
import at.pcgamingfreaks.Bukkit.Utils;
|
||||
import at.pcgamingfreaks.Minepacks.Bukkit.API.Backpack;
|
||||
import at.pcgamingfreaks.Minepacks.Bukkit.Minepacks;
|
||||
|
||||
@ -153,7 +154,7 @@ else if((event.getAction() == InventoryAction.HOTBAR_MOVE_AND_READD || event.get
|
||||
event.setCancelled(true);
|
||||
}
|
||||
}
|
||||
else if(!player.getInventory().equals(event.getClickedInventory()) && checkIsBlockedAndShowMessage(player, event.getCursor()))
|
||||
else if(!player.getInventory().equals(Utils.getClickedInventory(event)) && checkIsBlockedAndShowMessage(player, event.getCursor()))
|
||||
{
|
||||
event.setCancelled(true);
|
||||
}
|
||||
|
@ -19,6 +19,7 @@
|
||||
|
||||
import at.pcgamingfreaks.Bukkit.MCVersion;
|
||||
import at.pcgamingfreaks.Bukkit.Message.Message;
|
||||
import at.pcgamingfreaks.Bukkit.Utils;
|
||||
import at.pcgamingfreaks.Minepacks.Bukkit.API.Backpack;
|
||||
import at.pcgamingfreaks.Minepacks.Bukkit.API.Events.InventoryClearedEvent;
|
||||
import at.pcgamingfreaks.Minepacks.Bukkit.Database.Helper.WorldBlacklistMode;
|
||||
@ -282,7 +283,7 @@ else if((event.getAction() == InventoryAction.HOTBAR_MOVE_AND_READD || event.get
|
||||
}
|
||||
else if(isItemShortcut(event.getCursor()))
|
||||
{
|
||||
if(!player.getInventory().equals(event.getClickedInventory()))
|
||||
if(!player.getInventory().equals(Utils.getClickedInventory(event)))
|
||||
{
|
||||
event.setCancelled(true);
|
||||
messageDoNotRemoveItem.send(player);
|
||||
|
Loading…
Reference in New Issue
Block a user