From 02972fbff9ea86f4dd731e1c7d705a8e0fbfcbc4 Mon Sep 17 00:00:00 2001 From: Brianna O'Keefe Date: Sun, 17 Feb 2019 18:41:03 -0500 Subject: [PATCH] fix --- src/main/java/me/goodandevil/skyblock/SkyBlock.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/me/goodandevil/skyblock/SkyBlock.java b/src/main/java/me/goodandevil/skyblock/SkyBlock.java index 56757a0d..b95a5cf0 100644 --- a/src/main/java/me/goodandevil/skyblock/SkyBlock.java +++ b/src/main/java/me/goodandevil/skyblock/SkyBlock.java @@ -237,6 +237,7 @@ public class SkyBlock extends JavaPlugin { Location location = (Location)section.get("Location"); org.bukkit.Material material = org.bukkit.Material.valueOf(section.getString("Material")); int size = section.getInt("Size"); + if (size == 0) return; stackableManager.addStack(new Stackable(UUID.fromString(uuid), location, material, size)); } }