9
0
mirror of https://github.com/Xiao-MoMi/Custom-Crops.git synced 2025-12-22 16:39:36 +00:00
This commit is contained in:
Xiao-MoMi
2022-10-15 22:39:50 +08:00
parent 9cc1abfc44
commit 04cfa5770f
7 changed files with 69 additions and 28 deletions

View File

@@ -88,6 +88,9 @@ public class CropManager extends Function {
this.worldListener = new WorldListener(this);
this.armorStandUtil = new ArmorStandUtil(this);
Bukkit.getPluginManager().registerEvents(itemSpawnListener, CustomCrops.plugin);
Bukkit.getPluginManager().registerEvents(worldListener, CustomCrops.plugin);
loadMode();
loadSeason();
loadPacket();
@@ -408,7 +411,9 @@ public class CropManager extends Function {
}
}
@Nullable
private ItemStack getLoot(String id) {
if (id == null) return null;
if (MiscUtils.isVanillaItem(id)) return new ItemStack(Material.valueOf(id));
else return customInterface.getItemStack(id);
}