27 lines
616 B
Markdown
27 lines
616 B
Markdown
# Ae.js — restoreOwnerMorph() (satır 756)
|
||
|
||
[← Ae.js](index.md) · [← Master](../../wiki.md)
|
||
|
||
```javascript
|
||
function restoreOwnerMorph(owner, state)
|
||
{
|
||
try
|
||
{
|
||
var current = morphNbtText(owner);
|
||
|
||
if (state.ownerHadMorph)
|
||
{
|
||
if (state.ownerMorphNbt !== "" && current !== state.ownerMorphNbt)
|
||
{
|
||
owner.setMorph(mappet.createMorph(state.ownerMorphNbt));
|
||
}
|
||
}
|
||
else if (current !== "")
|
||
{
|
||
try { owner.setMorph(null); } catch (e1) {}
|
||
}
|
||
}
|
||
catch (e2) {}
|
||
}
|
||
```
|