From c2d298dbff76e81726e8149ef2c0f8c624c546ba Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Wed, 4 May 2022 16:50:29 -0400 Subject: [PATCH] set model-data to correct configuration --- .../net/tylermurphy/hideAndSeek/configuration/Config.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/tylermurphy/hideAndSeek/configuration/Config.java b/src/main/java/net/tylermurphy/hideAndSeek/configuration/Config.java index 39bc55f..79571fc 100644 --- a/src/main/java/net/tylermurphy/hideAndSeek/configuration/Config.java +++ b/src/main/java/net/tylermurphy/hideAndSeek/configuration/Config.java @@ -288,7 +288,7 @@ public class Config { item.set("material", config.getString("lobbyItems.leave.material")); if(Version.atLeast("1.14")){ if(config.contains("lobbyItems.leave.model-data") && config.getInt("lobbyItems.leave.model-data") != 0){ - config.set("model-data", config.getInt("lobbyItems.leave.model-data")); + item.set("model-data", config.getInt("lobbyItems.leave.model-data")); } } List lore = config.getStringList("lobbyItems.leave.lore"); @@ -311,7 +311,7 @@ public class Config { lobbyItemStartPosition = config.getInt("lobbyItems.start.position"); if(Version.atLeast("1.14")){ if(config.contains("lobbyItems.start.model-data") && config.getInt("lobbyItems.start.model-data") != 0){ - config.set("model-data", config.getInt("lobbyItems.start.model-data")); + item.set("model-data", config.getInt("lobbyItems.start.model-data")); } } }