Skip to content

Commit

Permalink
Merge pull request #21 from Dev0Louis/dev
Browse files Browse the repository at this point in the history
4.0.0 Final Release
  • Loading branch information
Dev0Louis authored Dec 10, 2023
2 parents 44de3ce + bf123a3 commit 789fce0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ minecraft_version=1.20.4
yarn_mappings=1.20.4+build.1
loader_version=0.15.1
# Mod Properties
mod_version=4.0.0-beta.2
mod_version=4.0.0
maven_group=dev.louis
archives_base_name=Nebula
# Dependencies
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/dev/louis/nebula/api/NebulaPlayer.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ default SpellManager setSpellManager(SpellManager spellManager) {
throw new UnsupportedOperationException("Injected Interface method was not overridden!");
}

/**
* This creates the ManaManager and the SpellManager if they are not already created.
* This should not be called manually, unless you know what you are doing.
*/
default void createManagersIfNecessary() {
throw new UnsupportedOperationException("Injected Interface method was not overridden!");
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public void setMana(int mana, boolean syncToClient) {
}

public void setMana(int mana) {
this.setMana(mana, true);
this.setMana(mana, this.isServer());
}

public void addMana(int mana) {
Expand Down
2 changes: 0 additions & 2 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
"minecraft": ">=1.20.2"
},
"custom": {
"nebula:contains_mana_manager": true,
"nebula:contains_spell_manager": true,
"loom:injected_interfaces": {
"net/minecraft/class_1657": ["dev/louis/nebula/api/NebulaPlayer"]
}
Expand Down

0 comments on commit 789fce0

Please sign in to comment.