Files

27 lines
616 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.
# 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) {}
}
```