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