Skip to content

Commit 90f823e

Browse files
committed
1.0 release
1 parent 6af60ce commit 90f823e

File tree

5 files changed

+55
-10
lines changed

5 files changed

+55
-10
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Auto Assign
2+
on:
3+
pull_request_target:
4+
5+
jobs:
6+
run:
7+
runs-on: ubuntu-latest
8+
permissions:
9+
contents: read
10+
issues: write
11+
pull-requests: write
12+
discussions: write
13+
steps:
14+
- uses: wow-actions/auto-assign@v3
15+
with:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
reviewers: RealMangoRage, PaintNinja
18+
assignees: PaintNinja, RealMangoRage
19+
skipKeywords: wip, draft
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Build MangoBotGradle
2+
on:
3+
push:
4+
branches: [ "master" ]
5+
paths-ignore:
6+
- 'README.md'
7+
- 'settings.gradle'
8+
9+
permissions:
10+
contents: write
11+
12+
jobs:
13+
build:
14+
uses: MinecraftForge/SharedActions/.github/workflows/gradle.yml@v0
15+
with:
16+
java: 21
17+
gradle_tasks: :publish
18+
artifact_name: "MangoBotMixin"
19+
author_icon_url: "https://avatars.githubusercontent.com/u/147930550"
20+
secrets:
21+
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
22+
MAVEN_USER: ${{ secrets.USERNAME }} # Reference the secret
23+
MAVEN_PASSWORD: ${{ secrets.PASSWORD }} # Reference the secret

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ repositories {
7373
dependencies {
7474

7575
installer('org.mangorage:installer:4.0.20')
76-
bootstrap("org.mangorage:mangobotbootstrap:1.0.41-beta")
76+
bootstrap("org.mangorage:mangobotbootstrap:1.0.43-beta")
7777

7878
plugin("org.mangorage:mangobot:12.0.72")
7979

src/main/java/org/mangorage/mangobotmixin/mixin/SpongeMixinImpl.java

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
import java.lang.reflect.Method;
1212

1313
public final class SpongeMixinImpl {
14+
private static final boolean DEBUG = false;
15+
1416
private static boolean loaded = false;
1517
private static IMixinTransformerFactory factory;
1618
private static IMixinTransformer transformer;
@@ -34,14 +36,16 @@ public static void load() {
3436
loaded = true;
3537

3638
// Load
37-
// System.setProperty("mixin.debug.verbose", "true");
38-
// System.setProperty("mixin.debug", "true");
39-
// System.setProperty("mixin.env.disableRefMap", "true");
40-
// System.setProperty("mixin.checks", "true");
39+
40+
if (DEBUG) {
41+
System.setProperty("mixin.debug.verbose", "true");
42+
System.setProperty("mixin.debug", "true");
43+
System.setProperty("mixin.env.disableRefMap", "true");
44+
System.setProperty("mixin.checks", "true");
45+
}
4146

4247
System.setProperty("mixin.bootstrapService", MangoBotMixinBootstrapImpl.class.getName());
4348
System.setProperty("mixin.service", MangoBotMixinServiceImpl.class.getName());
44-
System.setProperty("mixin.env.remapRefMap", "false");
4549

4650
MixinBootstrap.init();
4751

src/main/java/org/mangorage/mangobotmixin/mixin/core/MangoBotMixinServiceImpl.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package org.mangorage.mangobotmixin.mixin.core;
22

33
import org.jetbrains.annotations.NotNull;
4-
import org.mangorage.bootstrap.api.loader.MangoLoader;
4+
import org.mangorage.bootstrap.api.loader.IMangoLoader;
55
import org.mangorage.mangobotmixin.mixin.SpongeMixinImpl;
66
import org.objectweb.asm.ClassReader;
77
import org.objectweb.asm.Opcodes;
@@ -177,7 +177,7 @@ public URL[] getClassPath() {
177177

178178
public @NotNull ClassNode getClassNode(final @NotNull String name, final boolean runTransformers, final int readerFlags) throws ClassNotFoundException, IOException {
179179
if(!runTransformers) throw new IllegalStateException("ClassNodes must always be provided transformed!");
180-
MangoLoader loader = (MangoLoader) Thread.currentThread().getContextClassLoader();
180+
IMangoLoader loader = (IMangoLoader) Thread.currentThread().getContextClassLoader();
181181

182182
final String canonicalName = name.replace('/', '.');
183183
final String internalName = name.replace('.', '/');
@@ -212,8 +212,7 @@ public void registerInvalidClass(String s) {
212212

213213
@Override
214214
public boolean isClassLoaded(String name) {
215-
final var loader = (MangoLoader) Thread.currentThread().getContextClassLoader();
216-
215+
final IMangoLoader loader = (IMangoLoader) Thread.currentThread().getContextClassLoader();
217216
return loader.hasClass(name);
218217
}
219218

0 commit comments

Comments
 (0)