Bump to Forge 1.12.2

Nobody is still using 1.12, so we might as well update to the latest -
it makes it easier to test mod compatibility at least.
This commit is contained in:
SquidDev 2018-03-24 12:20:51 +00:00
parent 043d5f00ca
commit d758895578
11 changed files with 14 additions and 28 deletions

View File

@ -26,7 +26,7 @@
archivesBaseName = "cc-tweaked"
minecraft {
version = "1.12-14.21.1.2387"
version = "1.12.2-14.23.2.2634"
runDir = "run"
replace '${version}', project.version
@ -35,7 +35,7 @@
// stable_# stables are built at the discretion of the MCP team.
// Use non-default mappings at your own risk. they may not allways work.
// simply re-run your setup task after changing the mappings to update your workspace.
mappings = "snapshot_20170629"
mappings = "snapshot_20180324"
// makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
}
@ -56,8 +56,8 @@
}
dependencies {
deobfProvided "mezz.jei:jei_1.12:4.7.5.86:api"
runtime "mezz.jei:jei_1.12:4.7.5.86"
deobfProvided "mezz.jei:jei_1.12.2:4.8.5.159:api"
runtime "mezz.jei:jei_1.12.2:4.8.5.159"
shade 'org.squiddev:Cobalt:0.3.1'
testCompile 'junit:junit:4.11'

View File

@ -210,7 +210,7 @@ private void loadSmartModel( ModelBakeEvent event, String name, IBakedModel smar
private static class TurtleItemColour implements IItemColor
{
@Override
public int getColorFromItemstack( @Nonnull ItemStack stack, int tintIndex )
public int colorMultiplier( @Nonnull ItemStack stack, int tintIndex )
{
if( tintIndex == 0 )
{

View File

@ -569,7 +569,7 @@ private DiskColorHandler( ItemDiskLegacy disk )
}
@Override
public int getColorFromItemstack( @Nonnull ItemStack stack, int layer )
public int colorMultiplier( @Nonnull ItemStack stack, int layer )
{
return layer == 0 ? 0xFFFFFF : disk.getColour( stack );
}

View File

@ -189,7 +189,7 @@ private static class BakedQuadBuilder implements IVertexConsumer
private BakedQuadBuilder( VertexFormat format )
{
this.format = format;
this.vertexData = new int[ format.getNextOffset() ];
this.vertexData = new int[ format.getSize() ];
}
@Nonnull

View File

@ -36,7 +36,7 @@ public abstract class BlockGeneric extends Block implements
protected BlockGeneric( Material material )
{
super( material );
this.isBlockContainer = true;
this.hasTileEntity = true;
}
protected abstract IBlockState getDefaultBlockState( int damage, EnumFacing placedSide );

View File

@ -86,7 +86,7 @@ public boolean canFit( int x, int y )
}
@Override
public boolean isHidden()
public boolean isDynamic()
{
return true;
}

View File

@ -91,7 +91,7 @@ public boolean canFit( int x, int y )
}
@Override
public boolean isHidden()
public boolean isDynamic()
{
return true;
}

View File

@ -33,7 +33,7 @@ public boolean canFit( int x, int y )
}
@Override
public boolean isHidden()
public boolean isDynamic()
{
return true;
}

View File

@ -34,7 +34,7 @@ public boolean canFit( int x, int y )
}
@Override
public boolean isHidden()
public boolean isDynamic()
{
return true;
}

View File

@ -37,7 +37,7 @@ public boolean canFit( int x, int y )
}
@Override
public boolean isHidden()
public boolean isDynamic()
{
return true;
}

View File

@ -126,22 +126,8 @@ public static Vec3d getRayStart( EntityLivingBase entity )
}
public static Vec3d getRayEnd( EntityPlayer player) {
double reach = 4.5;
if( player instanceof EntityPlayerMP )
{
reach = ((EntityPlayerMP) player).interactionManager.getBlockReachDistance();
}
else if( player.getEntityWorld().isRemote )
{
reach = Minecraft.getMinecraft().playerController.getBlockReachDistance();
}
else if( player.capabilities.isCreativeMode )
{
reach = 5.0;
}
double reach = player.getEntityAttribute(EntityPlayer.REACH_DISTANCE).getAttributeValue();
Vec3d look = player.getLookVec();
return getRayStart( player ).addVector( look.x * reach, look.y * reach, look.z * reach );
}