aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de/torui/coflsky/handlers/DescriptionHandler.java
diff options
context:
space:
mode:
authorÄkwav <ekwav@coflnet.com>2022-06-16 13:50:07 +0200
committerÄkwav <ekwav@coflnet.com>2022-06-16 13:50:07 +0200
commitb8aeecc901fbd587a6ff11e17dc84fea82daaa97 (patch)
tree73d45db568da1eb7145291f1e35526b0d689bf40 /src/main/java/de/torui/coflsky/handlers/DescriptionHandler.java
parentcd127e92dfd9657977b180678dbe76306a3e917f (diff)
downloadCOFL-b8aeecc901fbd587a6ff11e17dc84fea82daaa97.tar.gz
COFL-b8aeecc901fbd587a6ff11e17dc84fea82daaa97.tar.bz2
COFL-b8aeecc901fbd587a6ff11e17dc84fea82daaa97.zip
implementation
Diffstat (limited to 'src/main/java/de/torui/coflsky/handlers/DescriptionHandler.java')
-rw-r--r--src/main/java/de/torui/coflsky/handlers/DescriptionHandler.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/de/torui/coflsky/handlers/DescriptionHandler.java b/src/main/java/de/torui/coflsky/handlers/DescriptionHandler.java
index 08eb819..48643bf 100644
--- a/src/main/java/de/torui/coflsky/handlers/DescriptionHandler.java
+++ b/src/main/java/de/torui/coflsky/handlers/DescriptionHandler.java
@@ -156,7 +156,10 @@ public class DescriptionHandler {
return;
for (DescModification datum : data) {
- if (!(event.toolTip.size() >= datum.line)) return;
+ if (event.toolTip.size() <= datum.line) {
+ System.out.println("Skipped line modification " + datum.line + " for " + event.itemStack.getDisplayName());
+ continue;
+ }
switch (datum.type) {
case "APPEND":
event.toolTip.add(datum.value);