Files

17 lines
465 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Darklord.js — isDomainBlock() (satır 2511)
[← Darklord.js](index.md) · [← Master](../../wiki.md)
```javascript
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;
}
```