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:
XiaoMoMi
2024-03-17 00:45:29 +08:00
parent 1c2f7729ef
commit 18b05fd52b
2 changed files with 2 additions and 2 deletions

View File

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

View File

@@ -1710,7 +1710,7 @@ public class ItemManagerImpl implements ItemManager {
@SuppressWarnings("DuplicatedCode") @SuppressWarnings("DuplicatedCode")
private void loadCrop(String key, ConfigurationSection section) { private void loadCrop(String key, ConfigurationSection section) {
ItemCarrier itemCarrier = ItemCarrier.valueOf(section.getString("type")); 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) {
LogUtils.warn("Unsupported crop type: " + itemCarrier.name()); LogUtils.warn("Unsupported crop type: " + itemCarrier.name());
return; return;