mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-13 00:37:52 +00:00
Fix Air block check in BlockPortal.
This commit is contained in:
1 parent
9034862024
commit
5ea9aff894
1 file changed
+17
@@ -9,3 +9,20 @@
|
||||
{
|
||||
par2 -= b0;
|
||||
par4 -= b1;
|
||||
@@ -136,6 +136,7 @@
|
||||
if (l != -1 && l != 2 || i1 != -1 && i1 != 3)
|
||||
{
|
||||
int j1 = par1World.getBlockId(par2 + b0 * l, par3 + i1, par4 + b1 * l);
|
||||
+ boolean isAirBlock = par1World.isAirBlock(par2 + b0 * l, par3 + i1, par4 + b1 * l);
|
||||
|
||||
if (flag)
|
||||
{
|
||||
@@ -144,7 +145,7 @@
|
||||
return false;
|
||||
}
|
||||
}
|
||||
- else if (j1 != 0 && j1 != Block.fire.blockID)
|
||||
+ else if (!isAirBlock && j1 != Block.fire.blockID)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
Reference in new issue
Block a user