9
0
mirror of https://github.com/Xiao-MoMi/Custom-Crops.git synced 2025-12-19 15:09:25 +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

@@ -8,7 +8,7 @@ plugins {
allprojects {
project.group = "net.momirealms"
project.version = "3.4.10"
project.version = "3.4.11"
apply<JavaPlugin>()
apply(plugin = "java")

View File

@@ -73,6 +73,7 @@ tasks {
relocate ("dev.dejvokep.boostedyaml", "net.momirealms.customcrops.libraries.boostedyaml")
relocate ("net.momirealms.biomeapi", "net.momirealms.customcrops.libraries.biomeapi")
relocate ("net.momirealms.antigrieflib", "net.momirealms.customcrops.libraries.antigrieflib")
relocate ("net.objecthunter.exp4j", "net.momirealms.customcrops.libraries.exp4j")
}
}

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;
}