Fix various keybinding bugs

This commit is contained in:
Marcel Konrad
2021-05-20 23:59:04 +02:00
parent be4f7ed818
commit 70b48b8041
3 changed files with 13 additions and 4 deletions

View File

@@ -95,6 +95,7 @@ public class Config
if(configValue != null && value != null && (!value.equals(configValue.get()) || configValue.get() instanceof List<?>))
{
Config.CONFIG_DATA.set(configValue.getPath(), value);
configValue.clearCache();
}
}

View File

@@ -1,6 +1,7 @@
package exopandora.worldhandler.config;
import exopandora.worldhandler.builder.impl.BuilderSetBlock.EnumMode;
import exopandora.worldhandler.event.KeyHandler;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;
import net.minecraftforge.common.ForgeConfigSpec;
@@ -124,7 +125,14 @@ public class ConfigCategorySettings
public void setShortcutKeys(boolean enabled)
{
boolean previous = this.shortcutKeys();
Config.set(this.shortcutKeys, enabled);
if(previous != enabled)
{
KeyHandler.updatePosKeys();
}
}
public boolean tooltips()