mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-03 23:07:40 +01:00
parent
6b3f3d8d8c
commit
9c8d3fce12
33
Spigot-Server-Patches/Fix-commodore-by-updating-asm.patch
Normal file
33
Spigot-Server-Patches/Fix-commodore-by-updating-asm.patch
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||||
|
From: MiniDigger | Martin <admin@minidigger.dev>
|
||||||
|
Date: Thu, 30 Apr 2020 16:17:14 +0200
|
||||||
|
Subject: [PATCH] Fix commodore by updating asm
|
||||||
|
|
||||||
|
|
||||||
|
diff --git a/pom.xml b/pom.xml
|
||||||
|
index fd417a9eeb..bc8438ae1a 100644
|
||||||
|
--- a/pom.xml
|
||||||
|
+++ b/pom.xml
|
||||||
|
@@ -0,0 +0,0 @@
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.ow2.asm</groupId>
|
||||||
|
<artifactId>asm</artifactId>
|
||||||
|
- <version>7.3.1</version>
|
||||||
|
+ <version>8.0.1</version> <!-- Paper -->
|
||||||
|
<scope>compile</scope>
|
||||||
|
</dependency>
|
||||||
|
<!-- deprecated API depend -->
|
||||||
|
diff --git a/src/main/java/org/bukkit/craftbukkit/util/Commodore.java b/src/main/java/org/bukkit/craftbukkit/util/Commodore.java
|
||||||
|
index 2c6814f131..4ae41fd255 100644
|
||||||
|
--- a/src/main/java/org/bukkit/craftbukkit/util/Commodore.java
|
||||||
|
+++ b/src/main/java/org/bukkit/craftbukkit/util/Commodore.java
|
||||||
|
@@ -0,0 +0,0 @@ public class Commodore
|
||||||
|
ClassReader cr = new ClassReader( b );
|
||||||
|
ClassWriter cw = new ClassWriter( cr, 0 );
|
||||||
|
|
||||||
|
- cr.accept( new ClassVisitor( Opcodes.ASM7, cw )
|
||||||
|
+ cr.accept( new ClassVisitor( Opcodes.ASM8, cw) // Paper
|
||||||
|
{
|
||||||
|
// Paper start - Rewrite plugins
|
||||||
|
@Override
|
||||||
|
--
|
Loading…
Reference in New Issue
Block a user