From 7f30528b426aeb42f7adf172480ac210a5f0aea6 Mon Sep 17 00:00:00 2001
From: mfnalex <1122571+mfnalex@users.noreply.github.com>
Date: Thu, 25 Apr 2019 09:32:00 +0200
Subject: [PATCH] Update for 1.14
---
.classpath | 22 +++++++++----------
plugin.yml | 2 +-
.../JeffChestSort/JeffChestSortListener.java | 6 ++---
.../JeffChestSort/JeffChestSortOrganizer.java | 2 +-
4 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/.classpath b/.classpath
index dd37b94..4ef33fa 100644
--- a/.classpath
+++ b/.classpath
@@ -1,11 +1,11 @@
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
diff --git a/plugin.yml b/plugin.yml
index dbe6f0d..18f0b2f 100644
--- a/plugin.yml
+++ b/plugin.yml
@@ -1,6 +1,6 @@
main: de.jeffclan.JeffChestSort.JeffChestSortPlugin
name: ChestSort
-version: 3.4
+version: 3.5
api-version: 1.13
description: Allows automatic chest sorting
author: mfnalex
diff --git a/src/de/jeffclan/JeffChestSort/JeffChestSortListener.java b/src/de/jeffclan/JeffChestSort/JeffChestSortListener.java
index 4ea12c8..e93e62a 100644
--- a/src/de/jeffclan/JeffChestSort/JeffChestSortListener.java
+++ b/src/de/jeffclan/JeffChestSort/JeffChestSortListener.java
@@ -26,9 +26,9 @@ public class JeffChestSortListener implements Listener {
@EventHandler
public void onPlayerJoin(PlayerJoinEvent event) {
- if (event.getPlayer().getName().equalsIgnoreCase("mfnalex")) {
- plugin.debug = true;
- }
+ //if (event.getPlayer().getName().equalsIgnoreCase("mfnalex")) {
+ // plugin.debug = true;
+ //}
if (event.getPlayer().isOp()) {
plugin.updateChecker.sendUpdateMessage(event.getPlayer());
diff --git a/src/de/jeffclan/JeffChestSort/JeffChestSortOrganizer.java b/src/de/jeffclan/JeffChestSort/JeffChestSortOrganizer.java
index 7b63c2a..48fc963 100644
--- a/src/de/jeffclan/JeffChestSort/JeffChestSortOrganizer.java
+++ b/src/de/jeffclan/JeffChestSort/JeffChestSortOrganizer.java
@@ -249,7 +249,7 @@ public class JeffChestSortOrganizer {
// put everything back in a temporary inventory to combine ItemStacks even when using strict slot sorting
// Thanks to SnackMix for this idea!
- Inventory tempInventory = Bukkit.createInventory(null, 54);
+ Inventory tempInventory = Bukkit.createInventory(null, 54); //cannot be bigger than 54 as of 1.14
for(ItemStack item : nonNullItems) {
if(plugin.debug) System.out.println(getSortableString(item));