Merge pull request #101

Fixed streamlining(lmao) and fixed enabled descriptions per player saving as false by default
This commit is contained in:
Will FP
2021-11-01 12:13:47 +00:00
committed by GitHub
3 changed files with 5 additions and 5 deletions

View File

@@ -23,6 +23,6 @@ public class Streamlining extends EcoEnchant {
return;
}
player.setWalkSpeed((float) (0.2 + (level * EcoEnchants.STREAMLINING.getConfig().getDouble(EcoEnchants.CONFIG_LOCATION + "speed-per-level"))));
player.setWalkSpeed((float) (0.2f - (level * this.getConfig().getDouble(EcoEnchants.CONFIG_LOCATION + "speed-per-level"))));
}
}

View File

@@ -55,7 +55,7 @@ public class GrindstoneListeners extends PluginDependent<EcoPlugin> implements L
ItemStack top = inventory.getItem(0);
ItemStack bottom = inventory.getItem(1);
ItemStack out = inventory.getItem(2);
if (out == null) {
return;
}
@@ -90,4 +90,4 @@ public class GrindstoneListeners extends PluginDependent<EcoPlugin> implements L
}, 1);
}
}
}

View File

@@ -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))
}
}
}