Copy
/* 1431:1568 */ int cobblecount = 0;
/* 1432:1569 */ int endcount = 0;
/* 1433:1570 */ int px = l.getBlockX();
/* 1434:1571 */ int py = l.getBlockY();
/* 1435:1572 */ int pz = l.getBlockZ();
/* 1436:1573 */ for (int x = -50; x <= 50; x++) {
/* 1437:1574 */ for (int y = Settings.island_height * -1; y <= 255 - Settings.island_height; y++) {
/* 1438:1575 */ for (int z = -50; z <= 50; z++)
/* 1439: */ {
/* 1440:1577 */ Block b = new Location(l.getWorld(), px + x, py + y, pz + z).getBlock();
/* 1441:1578 */ if (b.getTypeId() == 57) {
/* 1442:1579 */ blockcount += 300;
/* 1443: */ }
/* 1444:1580 */ if ((b.getTypeId() == 41) || (b.getTypeId() == 116) || (b.getTypeId() == 122)) {
/* 1445:1581 */ blockcount += 150;
/* 1446: */ }
/* 1447:1582 */ if ((b.getTypeId() == 49) || (b.getTypeId() == 42)) {
/* 1448:1583 */ blockcount += 10;
/* 1449: */ }
/* 1450:1584 */ if ((b.getTypeId() == 47) || (b.getTypeId() == 84)) {
/* 1451:1585 */ blockcount += 5;
/* 1452: */ }
/* 1453:1586 */ if ((b.getTypeId() == 79) || (b.getTypeId() == 82) || (b.getTypeId() == 112) || (b.getTypeId() == 2) || (b.getTypeId() == 110)) {
/* 1454:1587 */ blockcount += 3;
/* 1455: */ }
/* 1456:1588 */ if ((b.getTypeId() == 45) || (b.getTypeId() == 35) || (b.getTypeId() == 24) ||
/* 1457:1589 */ (b.getTypeId() == 121) || (b.getTypeId() == 108) || (b.getTypeId() == 109) || (b.getTypeId() == 43) ||
/* 1458:1590 */ (b.getTypeId() == 20) || (b.getTypeId() == 89) || (b.getTypeId() == 155) || (b.getTypeId() == 156)) {
/* 1459:1591 */ blockcount += 2;
/* 1460: */ }
/* 1461:1592 */ if (((b.getTypeId() != 0) && (b.getTypeId() != 8) && (b.getTypeId() != 106) && (b.getTypeId() != 9) && (b.getTypeId() != 10) && (b.getTypeId() != 11) && (b.getTypeId() != 4)) || ((b.getTypeId() == 4) && (cobblecount < 10000)) || ((b.getTypeId() == 121) && (endcount < 5000)))
/* 1462: */ {
/* 1463:1594 */ blockcount++;
/* 1464:1595 */ if (b.getTypeId() == 4) {
/* 1465:1597 */ cobblecount++;
/* 1466: */ }
/* 1467:1599 */ if (b.getTypeId() == 121) {
/* 1468:1601 */ endcount++;
/* 1469: */ }
Here's the important parts:
Line /* 1457:1589 */: (b.getTypeId() == 121). This adds 2 points regardless of endcount.
Line /* 1461:1592 */: . Here, endcount is actually used, and if so one point is awarded.
It's kind of odd (and clearly not intended behavior), but it is a good thing to know.

