Skip to content

Commit

Permalink
level-cap-patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Neovitalism committed Aug 22, 2024
1 parent d7ea0a9 commit 7d1a190
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 171 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package me.neovitalism.neomixins;
package me.neovitalism.levelcappatch;

import net.minecraftforge.fml.common.Mod;
import org.apache.logging.log4j.Level;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

@Mod("neomixins")
public class NeoMixins {
@Mod("levelcappatch")
public class LevelCapPatch {
private static final Logger LOGGER = LogManager.getLogger();

public NeoMixins() {
public LevelCapPatch() {
LOGGER.log(Level.INFO, "Loaded!");
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package me.neovitalism.levelcappatch.mixins;

import com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;

@Mixin(value=PixelmonWrapper.class, remap = false)
public abstract class PixelmonWrapperMixin {
@Shadow public abstract void recalculateMaxHP();

@Inject(method={"setTempLevel"}, at={@At(value="RETURN")})
public void levelCapPatch$setTempLevel(int level, CallbackInfo ci) {
this.recalculateMaxHP();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"target": "@env(DEFAULT)",
"compatibilityLevel": "JAVA_8",
"mixins": [

"PixelmonWrapperMixin"
],
"injectors": {
"defaultRequire": 1
Expand Down
104 changes: 0 additions & 104 deletions forge120/build.gradle

This file was deleted.

15 changes: 0 additions & 15 deletions forge120/src/main/java/me/neovitalism/neomixins/NeoMixins.java

This file was deleted.

24 changes: 0 additions & 24 deletions forge120/src/main/resources/META-INF/mods.toml

This file was deleted.

14 changes: 0 additions & 14 deletions forge120/src/main/resources/mixins.neomixins.json

This file was deleted.

6 changes: 0 additions & 6 deletions forge120/src/main/resources/pack.mcmeta

This file was deleted.

6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
mod_version = 1.0.0
mod_id = neomixins
mod_name = NeoMixins
mod_description = Mixins for use with Pixelmon
mod_id = levelcappatch
mod_name = LevelCapPatch
mod_description = Fixes Level Cap not recalculating Pokémon's health.
github_page = https://github.com/Neovitalism/NeoMixins

0 comments on commit 7d1a190

Please sign in to comment.