This correctly uses the world height less one block for placement of a
Door. Required for placing doors inside a littleblocks area.
This commit is contained in:
parent
185b9f8368
commit
05afb0c347
1 changed files with 9 additions and 0 deletions
|
@ -9,3 +9,12 @@
|
|||
}
|
||||
else
|
||||
{
|
||||
@@ -379,7 +379,7 @@
|
||||
// JAVADOC METHOD $$ func_149742_c
|
||||
public boolean canPlaceBlockAt(World p_149742_1_, int p_149742_2_, int p_149742_3_, int p_149742_4_)
|
||||
{
|
||||
- return p_149742_3_ >= 255 ? false : World.doesBlockHaveSolidTopSurface(p_149742_1_, p_149742_2_, p_149742_3_ - 1, p_149742_4_) && super.canPlaceBlockAt(p_149742_1_, p_149742_2_, p_149742_3_, p_149742_4_) && super.canPlaceBlockAt(p_149742_1_, p_149742_2_, p_149742_3_ + 1, p_149742_4_);
|
||||
+ return p_149742_3_ >= p_149742_1_.getHeight() - 1 ? false : World.doesBlockHaveSolidTopSurface(p_149742_1_, p_149742_2_, p_149742_3_ - 1, p_149742_4_) && super.canPlaceBlockAt(p_149742_1_, p_149742_2_, p_149742_3_, p_149742_4_) && super.canPlaceBlockAt(p_149742_1_, p_149742_2_, p_149742_3_ + 1, p_149742_4_);
|
||||
}
|
||||
|
||||
// JAVADOC METHOD $$ func_149656_h
|
||||
|
|
Loading…
Reference in a new issue