mirror of
https://github.com/Xiao-MoMi/Custom-Crops.git
synced 2025-12-22 16:39:36 +00:00
2.0-r8
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user