From 86eec1b706d5fb0a3928ec43b97ba4530de0aa28 Mon Sep 17 00:00:00 2001 From: _OfTeN_ Date: Sat, 30 Oct 2021 23:49:00 +0300 Subject: [PATCH] - Fixed descriptions saving as false for default - Fixed not grindstoneable enchantments still being grindstoned --- .../com/willfp/ecoenchants/data/storage/PlayerProfile.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/data/storage/PlayerProfile.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/data/storage/PlayerProfile.kt index 6dc28943..1b76f0e5 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/data/storage/PlayerProfile.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/data/storage/PlayerProfile.kt @@ -33,7 +33,7 @@ class PlayerProfile private constructor( Type.INT -> data[key] = handler.read(uuid, key, 0) Type.DOUBLE -> data[key] = handler.read(uuid, key, 0.0) Type.STRING -> data[key] = handler.read(uuid, key, "Unknown") - Type.BOOLEAN -> data[key] = handler.read(uuid, key, false) + Type.BOOLEAN -> data[key] = handler.read(uuid, key, true) } } @@ -50,7 +50,7 @@ class PlayerProfile private constructor( Type.INT -> handler.write(uuid, key, profile.read(key, 0)) Type.DOUBLE -> handler.write(uuid, key, profile.read(key, 0.0)) Type.STRING -> handler.write(uuid, key, profile.read(key, "Unknown Value")) - Type.BOOLEAN -> handler.write(uuid, key, profile.read(key, false)) + Type.BOOLEAN -> handler.write(uuid, key, profile.read(key, true)) } } }