8.10-SNAPSHOT2

This commit is contained in:
mfnalex 2020-06-13 16:14:39 +02:00
parent 2c9097415b
commit de1e9b7e37
4 changed files with 7 additions and 2 deletions

View File

@ -1,6 +1,7 @@
# Changelog
## 8.10-SNAPSHOT1
- Removed "checking for updates" message
- Left-Click/Right-Click-Hotkey only work with empty hand now
## 8.9
- Prevent BossShopPro's GUI from being sorted

View File

@ -9,7 +9,7 @@
<name>JeffChestSort</name>
<url>https://www.chestsort.de</url>
<description>Automatically sorts your chests!</description>
<version>8.10-SNAPSHOT1</version>
<version>8.10-SNAPSHOT2</version>
<packaging>jar</packaging>
<properties>

View File

@ -416,6 +416,10 @@ public class ChestSortListener implements Listener {
if(e.getClickedInventory()!=null) {
return;
}
// Only continue if hand is empty
if(e.getCursor() != null && e.getCursor().getType() != null && e.getCursor().getType() != Material.AIR) {
return;
}
// Possible fix for #57
if(e.getInventory().getHolder()==null) return;
if(e.getInventory().getHolder() == p && e.getInventory() != p.getInventory()) return;

View File

@ -1,6 +1,6 @@
main: de.jeff_media.ChestSort.ChestSortPlugin
name: ChestSort
version: 8.10-SNAPSHOT1
version: 8.10-SNAPSHOT2
api-version: 1.13
description: Allows automatic chest sorting
author: mfnalex