23 lines
1,023 B
Diff
23 lines
1,023 B
Diff
|
--- ../src_base/minecraft_server/net/minecraft/src/BlockPressurePlate.java 0000-00-00 00:00:00.000000000 -0000
|
||
|
+++ ../src_work/minecraft_server/net/minecraft/src/BlockPressurePlate.java 0000-00-00 00:00:00.000000000 -0000
|
||
|
@@ -46,7 +46,8 @@
|
||
|
|
||
|
public boolean canPlaceBlockAt(World world, int i, int j, int k)
|
||
|
{
|
||
|
- return world.isBlockNormalCube(i, j - 1, k) || world.getBlockId(i, j - 1, k) == Block.fence.blockID;
|
||
|
+ return world.isBlockSolidOnSide(i, j - 1, k,1) ||
|
||
|
+ world.getBlockId(i, j - 1, k) == Block.fence.blockID;
|
||
|
}
|
||
|
|
||
|
public void onBlockAdded(World world, int i, int j, int k)
|
||
|
@@ -56,7 +57,8 @@
|
||
|
public void onNeighborBlockChange(World world, int i, int j, int k, int l)
|
||
|
{
|
||
|
boolean flag = false;
|
||
|
- if(!world.isBlockNormalCube(i, j - 1, k) && world.getBlockId(i, j - 1, k) != Block.fence.blockID)
|
||
|
+ if(!world.isBlockSolidOnSide(i, j - 1, k,1)
|
||
|
+ && world.getBlockId(i, j - 1, k) != Block.fence.blockID)
|
||
|
{
|
||
|
flag = true;
|
||
|
}
|