Skip to content

Commit

Permalink
Fix files not loading on linux (#738), Closes #737
Browse files Browse the repository at this point in the history
* Bump vital api

* Don't need to create an arraylist

* Fix potential NPE with heads not working

* bump version

* update changelog
  • Loading branch information
ryderbelserion authored Jun 8, 2024
1 parent 422737c commit d461e88
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Fixes:
* Temporarily commented out code for direct ItemsAdder support until LoneDev is finished making any changes they would like to.
* The manual way using CustomModelData will still work.
* Fix files not loading on linux ( I love file systems! )
* Uppercase player name in default files to avoid some stupid error.

## Other:
* [Feature Requests](https://github.com/Crazy-Crew/CrazyCrates/discussions/categories/features)
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/com/badbones69/crazycrates/Server.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public void reload() {
*/
@Override
public @NotNull final List<String> getCrateFiles() {
return FileUtil.getFiles(getCrateFolder().toPath(), ".yml", true);
return FileUtil.getFiles(getCrateFolder(), ".yml");
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class ConfigManager {
/**
* Loads configuration files.
*/
public static void load(File dataFolder) {
public static void load(final File dataFolder) {
YamlFileResourceOptions builder = YamlFileResourceOptions.builder().indentationSize(2).build();

config = SettingsManagerBuilder
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ authors=["ryderbelserion", "BadBones69", "TDL"]
description=Create unlimited crates with multiple crate types to choose from!
website=https://modrinth.com/plugin/crazycrates

version=3.0.4
version=3.0.5
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ oraxen = "1.171.0"
annotations = "24.1.0"
crazycrates = "0.6"
gson = "2.10.1"
vital = "1.5.4"
vital = "1.5.5"

decentholograms = "2.8.8"
fancyholograms = "2.0.6"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public void loadHolograms() {
* @return a list of crate names.
*/
public List<String> getCrateNames() {
return new ArrayList<>(this.plugin.getInstance().getCrateFiles());
return this.plugin.getInstance().getCrateFiles();
}

/**
Expand Down
2 changes: 1 addition & 1 deletion paper/src/main/resources/crates/CrateExample.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ Crate:
# The chance to win i.e. 7%
Chance: 7
# An example of a custom player head using minecraft players.
Player: "rukkhadevata"
Player: "Rukkhadevata"
'3':
# The name of the item to display in the gui.
DisplayName: "<red>Diamond Sword"
Expand Down

0 comments on commit d461e88

Please sign in to comment.