Highly incomplete code. First work on porting to 1.12. Still need to rework a LOT of things.

This commit is contained in:
Gunther De Wachter
2017-07-06 01:57:19 +02:00
parent d67f97cd16
commit fbcf8c4705
127 changed files with 850 additions and 425 deletions
@@ -82,7 +82,7 @@ public final class EntityChargedQuartz extends AEBaseEntityItem
final int k = MathHelper.floor( this.posZ );
IBlockState state = this.world.getBlockState( new BlockPos( j, i, k ) );
final Material mat = state.getBlock().getMaterial( state );
final Material mat = state.getMaterial();
if( Platform.isServer() && mat.isLiquid() )
{
@@ -79,7 +79,7 @@ public class RenderTinyTNTPrimed extends Render
f2 = ( 1.0F - ( tnt.getFuse() - life + 1.0F ) / 100.0F ) * 0.8F;
this.bindEntityTexture( tnt );
GlStateManager.translate( -0.5F, -0.5F, 0.5F );
blockrendererdispatcher.renderBlockBrightness( Blocks.TNT.getDefaultState(), tnt.getBrightness( life ) );
blockrendererdispatcher.renderBlockBrightness( Blocks.TNT.getDefaultState(), tnt.getBrightness() );
GlStateManager.translate( 0.0F, 0.0F, 1.0F );
if( tnt.getFuse() / 5 % 2 == 0 )