mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-27 23:45:44 +00:00
Some things to note: Netty is screwy so currently can't join single player. @cpw Crafting has been MAJORY reworked. The current GameRegistry functions are nooped, this is IN THE WORKS. Just need to move the recipe list to a full class registry, and then re implement the in-code recipe registration. Also, it IS advised that modders move to JSON, because ideally we'll see a S->C recipe syncing system in 1.13 which would allow servers to have custom recipes. OreDictionary currently 1/2 works, need to write a better algorithm for replacing ingredients. Please be patient Rendering: A lot of functions got a new float parameter, this is similar to partial ticks, needs more research
33 lines
1.4 KiB
Diff
33 lines
1.4 KiB
Diff
--- ../src-base/minecraft/net/minecraft/block/BlockStairs.java
|
|
+++ ../src-work/minecraft/net/minecraft/block/BlockStairs.java
|
|
@@ -483,6 +483,29 @@
|
|
return new BlockStateContainer(this, new IProperty[] {field_176309_a, field_176308_b, field_176310_M});
|
|
}
|
|
|
|
+ @Override
|
|
+ public boolean doesSideBlockRendering(IBlockState state, IBlockAccess world, BlockPos pos, EnumFacing face)
|
|
+ {
|
|
+ if (net.minecraftforge.common.ForgeModContainer.disableStairSlabCulling)
|
|
+ return super.doesSideBlockRendering(state, world, pos, face);
|
|
+
|
|
+ if ( state.func_185914_p() )
|
|
+ return true;
|
|
+
|
|
+ state = this.func_176221_a(state, world, pos);
|
|
+
|
|
+ EnumHalf half = state.func_177229_b(field_176308_b);
|
|
+ EnumFacing side = state.func_177229_b(field_176309_a);
|
|
+ EnumShape shape = state.func_177229_b(field_176310_M);
|
|
+ if (face == EnumFacing.UP) return half == EnumHalf.TOP;
|
|
+ if (face == EnumFacing.DOWN) return half == EnumHalf.BOTTOM;
|
|
+ if (shape == EnumShape.OUTER_LEFT || shape == EnumShape.OUTER_RIGHT) return false;
|
|
+ if (face == side) return true;
|
|
+ if (shape == EnumShape.INNER_LEFT && face.func_176746_e() == side) return true;
|
|
+ if (shape == EnumShape.INNER_RIGHT && face.func_176735_f() == side) return true;
|
|
+ return false;
|
|
+ }
|
|
+
|
|
public static enum EnumHalf implements IStringSerializable
|
|
{
|
|
TOP("top"),
|