Skip to content

Commit

Permalink
Update Paper dependency in CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Boerman committed Feb 12, 2024
1 parent ad069aa commit e517a8e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/compile-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
./gradlew generateMetadataFileForMavenPublication
./gradlew generatePomFileForMavenPublication
./gradlew publishToMavenLocal
cd ~/.m2/repository/io/papermc/paper/paper-server/1.20.2-R0.1-SNAPSHOT
mvn install:install-file -DgroupId=io.papermc.paper -DartifactId=paper-server -Dversion=1.20.2-R0.1-SNAPSHOT -Dpackaging=jar -Dfile=paper-server-1.20.2-R0.1-SNAPSHOT-mojang-mapped.jar
cd ~/.m2/repository/io/papermc/paper/paper-server/1.20.4-R0.1-SNAPSHOT
mvn install:install-file -DgroupId=io.papermc.paper -DartifactId=paper-server -Dversion=1.20.4-R0.1-SNAPSHOT -Dpackaging=jar -Dfile=paper-server-1.20.4-R0.1-SNAPSHOT-mojang-mapped.jar
cd ~
- name: Compile ScalaLoader
run: mvn --batch-mode --update-snapshots verify -DfinalName=ScalaLoader
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ class PluginEventReplacer extends ClassVisitor {
@Override
public MethodVisitor visitMethod(int access, String name, String descriptor, String signature, String[] exceptions) {
//if a plugin calls ScalaPluginEnableEvent#getPlugin() -> ScalaPlugin, replace the call by calling to ScalaPluginEnableEvent#getPlugin() -> IScalaPlugin instead.
//to keep compatibility, cast to ScalaPlugin again. This is a best-effort approach, it will fail if the plugin in a paper.ScalaPlugin.
//to keep compatibility, cast to ScalaPlugin again. This is a best-effort approach, it will fail if the plugin is a paper.ScalaPlugin.

return new MethodVisitor(AsmConstants.ASM_API, super.visitMethod(access, name, descriptor, signature, exceptions)) {
@Override
Expand Down

0 comments on commit e517a8e

Please sign in to comment.