9
0
mirror of https://github.com/Xiao-MoMi/Custom-Crops.git synced 2025-12-25 18:09:28 +00:00
This commit is contained in:
XiaoMoMi
2024-06-08 14:53:37 +08:00
parent aeeac0fdb6
commit 22cfc67680
3 changed files with 3 additions and 2 deletions

View File

@@ -1810,7 +1810,7 @@ public class ItemManagerImpl implements ItemManager {
@SuppressWarnings("DuplicatedCode")
private void loadCrop(String key, ConfigurationSection section) {
ItemCarrier itemCarrier = ItemCarrier.valueOf(section.getString("type").toUpperCase(Locale.ENGLISH));
if (itemCarrier != ItemCarrier.TRIPWIRE && itemCarrier != ItemCarrier.ITEM_DISPLAY && itemCarrier != ItemCarrier.ITEM_FRAME) {
if (itemCarrier != ItemCarrier.TRIPWIRE && itemCarrier != ItemCarrier.ITEM_DISPLAY && itemCarrier != ItemCarrier.ITEM_FRAME && itemCarrier != ItemCarrier.NOTE_BLOCK) {
LogUtils.warn("Unsupported crop type: " + itemCarrier.name());
return;
}