Files

465 B
Raw Permalink Blame History

Darklord.js — isDomainBlock() (satır 2511)

← Darklord.js · ← Master

function isDomainBlock(world, item)
{
    var block = null;
    try { block = world.getBlock(item.x, item.y, item.z); } catch (e1) {}
    if (!block) return false;
    if (blockId(block) !== DOMAIN_BLOCK) return false;

    try { return Number(block.getMeta()) === DOMAIN_BLOCK_META; } catch (e2) {}
    return true;
}