2013-11-19 01:17:45 +00:00
|
|
|
--- ../src-base/minecraft/net/minecraft/block/BlockPistonBase.java
|
|
|
|
+++ ../src-work/minecraft/net/minecraft/block/BlockPistonBase.java
|
2013-12-21 08:10:35 +00:00
|
|
|
@@ -11,6 +11,7 @@
|
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
|
|
import net.minecraft.init.Blocks;
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
+import net.minecraft.server.management.PlayerManager;
|
|
|
|
import net.minecraft.tileentity.TileEntity;
|
|
|
|
import net.minecraft.tileentity.TileEntityPiston;
|
|
|
|
import net.minecraft.util.AxisAlignedBB;
|
|
|
|
@@ -360,7 +361,8 @@
|
2012-08-06 10:35:57 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2013-12-21 08:10:35 +00:00
|
|
|
- return !(p_150080_0_ instanceof ITileEntityProvider);
|
|
|
|
+ return !(p_150080_1_.func_147439_a(p_150080_2_, p_150080_3_, p_150080_4_).hasTileEntity(p_150080_1_.getBlockMetadata(p_150080_2_, p_150080_3_, p_150080_4_)));
|
|
|
|
+
|
2012-08-06 10:35:57 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-12-21 08:10:35 +00:00
|
|
|
@@ -375,14 +377,14 @@
|
2012-12-12 09:58:24 +00:00
|
|
|
{
|
2013-01-12 07:45:38 +00:00
|
|
|
if (l1 < 13)
|
2012-12-12 09:58:24 +00:00
|
|
|
{
|
2013-01-12 07:45:38 +00:00
|
|
|
- if (j1 <= 0 || j1 >= 255)
|
2013-12-21 08:10:35 +00:00
|
|
|
+ if (j1 <= 0 || j1 >= p_150077_0_.getHeight())
|
2012-12-12 09:58:24 +00:00
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
2013-06-14 19:08:24 +00:00
|
|
|
|
2013-12-21 08:10:35 +00:00
|
|
|
Block block = p_150077_0_.func_147439_a(i1, j1, k1);
|
2013-06-14 19:08:24 +00:00
|
|
|
|
2013-12-21 08:10:35 +00:00
|
|
|
- if (block.func_149688_o() != Material.field_151579_a)
|
2013-12-31 21:07:44 +00:00
|
|
|
+ if (!block.isAir(p_150077_0_, i1, j1, k1))
|
2013-06-14 19:08:24 +00:00
|
|
|
{
|
2013-12-21 08:10:35 +00:00
|
|
|
if (!func_150080_a(block, p_150077_0_, i1, j1, k1, true))
|
2013-06-14 19:08:24 +00:00
|
|
|
{
|
2013-12-21 08:10:35 +00:00
|
|
|
@@ -420,14 +422,14 @@
|
|
|
|
{
|
2013-01-12 07:45:38 +00:00
|
|
|
if (l1 < 13)
|
2012-12-12 09:58:24 +00:00
|
|
|
{
|
2013-01-12 07:45:38 +00:00
|
|
|
- if (j1 <= 0 || j1 >= 255)
|
2013-12-21 08:10:35 +00:00
|
|
|
+ if (j1 <= 0 || j1 >= p_150079_1_.getHeight())
|
2012-12-12 09:58:24 +00:00
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
2013-06-14 19:08:24 +00:00
|
|
|
|
2013-12-21 08:10:35 +00:00
|
|
|
Block block = p_150079_1_.func_147439_a(i1, j1, k1);
|
2013-06-14 19:08:24 +00:00
|
|
|
|
2013-12-21 08:10:35 +00:00
|
|
|
- if (block.func_149688_o() != Material.field_151579_a)
|
2013-12-31 21:07:44 +00:00
|
|
|
+ if (!block.isAir(p_150079_1_, i1, j1, k1))
|
2013-06-14 19:08:24 +00:00
|
|
|
{
|
2013-12-21 08:10:35 +00:00
|
|
|
if (!func_150080_a(block, p_150079_1_, i1, j1, k1, true))
|
2013-06-14 19:08:24 +00:00
|
|
|
{
|
2013-12-21 08:10:35 +00:00
|
|
|
@@ -448,7 +450,9 @@
|
2013-03-16 19:50:30 +00:00
|
|
|
continue;
|
|
|
|
}
|
|
|
|
|
2013-12-21 08:10:35 +00:00
|
|
|
- block.func_149697_b(p_150079_1_, i1, j1, k1, p_150079_1_.getBlockMetadata(i1, j1, k1), 0);
|
2013-06-14 19:08:24 +00:00
|
|
|
+ //With our change to how snowballs are dropped this needs to disallow to mimic vanilla behavior.
|
2013-12-21 08:10:35 +00:00
|
|
|
+ float chance = block instanceof BlockSnow ? -1.0f : 1.0f;
|
|
|
|
+ block.func_149690_a(p_150079_1_, i1, j1, k1, p_150079_1_.getBlockMetadata(i1, j1, k1), chance, 0);
|
|
|
|
p_150079_1_.func_147468_f(i1, j1, k1);
|
2013-03-16 19:50:30 +00:00
|
|
|
}
|
|
|
|
}
|