()
| 1476 | } |
| 1477 | |
| 1478 | public void func_150809_p() |
| 1479 | { |
| 1480 | this.isTerrainPopulated = true; |
| 1481 | this.isLightPopulated = true; |
| 1482 | BlockPos blockpos = new BlockPos(this.xPosition << 4, 0, this.zPosition << 4); |
| 1483 | |
| 1484 | if (!this.worldObj.provider.getHasNoSky()) |
| 1485 | { |
| 1486 | if (this.worldObj.isAreaLoaded(blockpos.add(-1, 0, -1), blockpos.add(16, this.worldObj.func_181545_F(), 16))) |
| 1487 | { |
| 1488 | label92: |
| 1489 | |
| 1490 | for (int i = 0; i < 16; ++i) |
| 1491 | { |
| 1492 | for (int j = 0; j < 16; ++j) |
| 1493 | { |
| 1494 | if (!this.func_150811_f(i, j)) |
| 1495 | { |
| 1496 | this.isLightPopulated = false; |
| 1497 | break label92; |
| 1498 | } |
| 1499 | } |
| 1500 | } |
| 1501 | |
| 1502 | if (this.isLightPopulated) |
| 1503 | { |
| 1504 | for (EnumFacing enumfacing : EnumFacing.Plane.HORIZONTAL) |
| 1505 | { |
| 1506 | int k = enumfacing.getAxisDirection() == EnumFacing.AxisDirection.POSITIVE ? 16 : 1; |
| 1507 | this.worldObj.getChunkFromBlockCoords(blockpos.offset(enumfacing, k)).func_180700_a(enumfacing.getOpposite()); |
| 1508 | } |
| 1509 | |
| 1510 | this.func_177441_y(); |
| 1511 | } |
| 1512 | } |
| 1513 | else |
| 1514 | { |
| 1515 | this.isLightPopulated = false; |
| 1516 | } |
| 1517 | } |
| 1518 | } |
| 1519 | |
| 1520 | private void func_177441_y() |
| 1521 | { |
no test coverage detected