@@ -171,6 +171,16 @@ public class Commodore
|
||||
}
|
||||
}
|
||||
|
||||
if ( owner.equals( "org/bukkit/DyeColor" ) )
|
||||
{
|
||||
switch ( name )
|
||||
{
|
||||
case "SILVER":
|
||||
super.visitFieldInsn( opcode, owner, "LIGHT_GRAY", desc );
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if ( owner.equals( "org/bukkit/Particle" ) )
|
||||
{
|
||||
switch ( name )
|
||||
@@ -229,6 +239,15 @@ public class Commodore
|
||||
return;
|
||||
}
|
||||
|
||||
if ( owner.equals( "org/bukkit/DyeColor" ) )
|
||||
{
|
||||
if ( name.equals( "valueOf" ) && desc.equals( "(Ljava/lang/String;)Lorg/bukkit/DyeColor;" ) )
|
||||
{
|
||||
super.visitMethodInsn( opcode, owner, "legacyValueOf", desc, itf );
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if ( owner.equals( "org/bukkit/Material" ) )
|
||||
{
|
||||
if ( name.equals( "getMaterial" ) && desc.equals( "(I)Lorg/bukkit/Material;" ) )
|
||||
|
||||
@@ -138,7 +138,7 @@ public final class CraftMagicNumbers implements UnsafeValues {
|
||||
return CraftBlockData.fromData(getBlock(material, data));
|
||||
}
|
||||
|
||||
public static final int DATA_VERSION = 1513;
|
||||
public static final int DATA_VERSION = 1519;
|
||||
|
||||
@Override
|
||||
public int getDataVersion() {
|
||||
|
||||
@@ -87,11 +87,6 @@ public class DummyGeneratorAccess implements GeneratorAccess {
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void a(String string, PersistentBase pb) {
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public IChunkProvider getChunkProvider() {
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
|
||||
Reference in New Issue
Block a user