53659fca06
Some notes: Almost all int x, int y, int z parameters have been changed to BlockPos class ForgeDirection has been removed, replaced by net.minecraft.util.EnumFacing. All FML classes have moved from packet cpw.mods.fml to net.minecraftforge.fml Fluid Rendering has been disabled for the time being, to be re-evaulated and a test mod created for it. Minecraft now uses a Model based system for rendering blocks and Items. The intention is to expand the model format to better suit modder's needed once it is evaulated. As such, The model loaders from Forge have been removed, to be replaced by expanding vanilla's model format. Metadata has been extracted out in Minecraft to IBlockState, which holds a list of properties instead of magic number metadata. DO NOT listen to the fearmongering, you can do EVERYTHING with block states you could previously with metadata. Stencil Bits are disabled entirely by for the main Display, Modders must enable and recreate the FrameBuffer if they wish to use Stencil Bits.
37 lines
1.5 KiB
Diff
37 lines
1.5 KiB
Diff
--- ../src-base/minecraft/net/minecraft/block/BlockPistonMoving.java
|
|
+++ ../src-work/minecraft/net/minecraft/block/BlockPistonMoving.java
|
|
@@ -110,16 +110,7 @@
|
|
|
|
public void func_180653_a(World p_180653_1_, BlockPos p_180653_2_, IBlockState p_180653_3_, float p_180653_4_, int p_180653_5_)
|
|
{
|
|
- if (!p_180653_1_.field_72995_K)
|
|
- {
|
|
- TileEntityPiston tileentitypiston = this.func_176422_e(p_180653_1_, p_180653_2_);
|
|
-
|
|
- if (tileentitypiston != null)
|
|
- {
|
|
- IBlockState iblockstate1 = tileentitypiston.func_174927_b();
|
|
- iblockstate1.func_177230_c().func_176226_b(p_180653_1_, p_180653_2_, iblockstate1, 0);
|
|
- }
|
|
- }
|
|
+ super.func_180653_a(p_180653_1_, p_180653_2_, p_180653_3_, p_180653_4_, p_180653_5_);
|
|
}
|
|
|
|
public MovingObjectPosition func_180636_a(World p_180636_1_, BlockPos p_180636_2_, Vec3 p_180636_3_, Vec3 p_180636_4_)
|
|
@@ -283,4 +274,16 @@
|
|
{
|
|
return new BlockState(this, new IProperty[] {field_176426_a, field_176425_b});
|
|
}
|
|
+
|
|
+ @Override
|
|
+ public java.util.List<net.minecraft.item.ItemStack> getDrops(IBlockAccess world, BlockPos pos, IBlockState state, int fortune)
|
|
+ {
|
|
+ TileEntityPiston tileentitypiston = this.func_176422_e(world, pos);
|
|
+ if (tileentitypiston != null)
|
|
+ {
|
|
+ IBlockState pushed = tileentitypiston.func_174927_b();
|
|
+ return pushed.func_177230_c().getDrops(world, pos, pushed, fortune);
|
|
+ }
|
|
+ return new java.util.ArrayList();
|
|
+ }
|
|
}
|