From da27a4e8469b312b05560c5f94604489d7bc8de9 Mon Sep 17 00:00:00 2001 From: Eric Date: Sat, 22 Jun 2019 17:25:58 +0200 Subject: [PATCH] Use guava's Optional for data watcher creation --- src/main/java/de/epiceric/shopchest/utils/Utils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/epiceric/shopchest/utils/Utils.java b/src/main/java/de/epiceric/shopchest/utils/Utils.java index b59bcf0..091197c 100644 --- a/src/main/java/de/epiceric/shopchest/utils/Utils.java +++ b/src/main/java/de/epiceric/shopchest/utils/Utils.java @@ -437,7 +437,7 @@ public class Utils { if (majorVersion < 13) register.invoke(dataWatcher, fCustomName.get(null), customName != null ? customName : ""); if (nmsItemStack != null) { - register.invoke(dataWatcher, fItem.get(null), majorVersion < 11 ? Optional.of(nmsItemStack) : nmsItemStack); + register.invoke(dataWatcher, fItem.get(null), majorVersion < 11 ? com.google.common.base.Optional.of(nmsItemStack) : nmsItemStack); } else { register.invoke(dataWatcher, fArmorStandFlags.get(null), armorStandFlags); }