mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
[Forge] Update to 1.10.2.
This commit is contained in:
parent
38ddeaf777
commit
2267dfd29f
@ -27,12 +27,12 @@ repositories {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//version = "6.1.2"
|
//version = "6.1.2"
|
||||||
ext.forgeVersion = "12.18.0.1981-1.10.0"
|
ext.forgeVersion = "12.18.0.2002-1.10.0"
|
||||||
//ext.internalVersion = version + ";" + gitCommitHash
|
//ext.internalVersion = version + ";" + gitCommitHash
|
||||||
|
|
||||||
minecraft {
|
minecraft {
|
||||||
version = "1.10-${project.forgeVersion}"
|
version = "1.10.2-${project.forgeVersion}"
|
||||||
mappings = "snapshot_20160623"
|
mappings = "snapshot_20160629"
|
||||||
runDir = 'run'
|
runDir = 'run'
|
||||||
|
|
||||||
replaceIn "com/sk89q/worldedit/forge/ForgeWorldEdit.java"
|
replaceIn "com/sk89q/worldedit/forge/ForgeWorldEdit.java"
|
||||||
|
@ -96,8 +96,7 @@ final class TileEntityUtils {
|
|||||||
static void setTileEntity(World world, Vector position, @Nullable NBTTagCompound tag) {
|
static void setTileEntity(World world, Vector position, @Nullable NBTTagCompound tag) {
|
||||||
if (tag != null) {
|
if (tag != null) {
|
||||||
updateForSet(tag, position);
|
updateForSet(tag, position);
|
||||||
// TileEntity.create(World, NBTTagCompound)
|
TileEntity tileEntity = TileEntity.create(world, tag);
|
||||||
TileEntity tileEntity = TileEntity.func_190200_a(world, tag);
|
|
||||||
if (tileEntity != null) {
|
if (tileEntity != null) {
|
||||||
world.setTileEntity(new BlockPos(position.getBlockX(), position.getBlockY(), position.getBlockZ()), tileEntity);
|
world.setTileEntity(new BlockPos(position.getBlockX(), position.getBlockY(), position.getBlockZ()), tileEntity);
|
||||||
}
|
}
|
||||||
@ -123,8 +122,7 @@ final class TileEntityUtils {
|
|||||||
|
|
||||||
TileEntity genericTE;
|
TileEntity genericTE;
|
||||||
try {
|
try {
|
||||||
// Downcast here for return while retaining the type
|
genericTE = baseConstructor.newInstance();
|
||||||
genericTE = (TileEntity) baseConstructor.newInstance();
|
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user