llDie() should not work on attachments (results in an incosistent attachment state)
parent
efd4810851
commit
e99341d7df
|
@ -1118,7 +1118,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
public virtual void llDie()
|
public virtual void llDie()
|
||||||
{
|
{
|
||||||
m_host.AddScriptLPS(1);
|
m_host.AddScriptLPS(1);
|
||||||
throw new SelfDeleteException();
|
if (!m_host.IsAttachment) throw new SelfDeleteException();
|
||||||
}
|
}
|
||||||
|
|
||||||
public LSL_Float llGround(LSL_Vector offset)
|
public LSL_Float llGround(LSL_Vector offset)
|
||||||
|
|
Loading…
Reference in New Issue