Fixes
This commit is contained in:
parent
3eab1d3a4e
commit
7a0c4bded9
3 changed files with 6 additions and 8 deletions
2
pom.xml
2
pom.xml
|
@ -11,7 +11,7 @@
|
|||
|
||||
<groupId>me.paradoxpixel</groupId>
|
||||
<artifactId>themepark</artifactId>
|
||||
<version>1.2.2</version>
|
||||
<version>1.2.4</version>
|
||||
|
||||
<repositories>
|
||||
<repository>
|
||||
|
|
|
@ -3,9 +3,7 @@ package me.paradoxpixel.themepark.gui;
|
|||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.Listener;
|
||||
import org.bukkit.event.inventory.ClickType;
|
||||
import org.bukkit.event.inventory.InventoryClickEvent;
|
||||
import org.bukkit.event.inventory.InventoryMoveItemEvent;
|
||||
import org.bukkit.event.inventory.*;
|
||||
import org.bukkit.inventory.Inventory;
|
||||
|
||||
public class GUIListener implements Listener {
|
||||
|
@ -28,11 +26,11 @@ public class GUIListener implements Listener {
|
|||
}
|
||||
|
||||
@EventHandler
|
||||
public void onMove(InventoryMoveItemEvent e) {
|
||||
if(e.getDestination() == null)
|
||||
public void onMove(InventoryClickEvent e) {
|
||||
if(e.getInventory() == null)
|
||||
return;
|
||||
|
||||
Inventory inventory = e.getDestination();
|
||||
Inventory inventory = e.getInventory();
|
||||
if(!(inventory.getHolder() instanceof GUIHolder))
|
||||
return;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: ThemePark
|
||||
version: 1.2.2
|
||||
version: 1.2.4
|
||||
main: me.paradoxpixel.themepark.ThemeParkPlugin
|
||||
author: ParadoxPixel
|
||||
softdepend: [PlaceholderAPI]
|
||||
|
|
Reference in a new issue