Update to Minecraft 1.13

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2018-07-22 12:00:00 +10:00
parent d9cf61f1a8
commit 1e014acb80
73 changed files with 469 additions and 418 deletions

View File

@@ -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;" ) )

View File

@@ -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() {

View File

@@ -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.");