465 B
465 B
Darklord.js — isDomainBlock() (satır 2511)
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;
}