diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/XEngine/XEngine.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs index dff53dd..c7673c7 100644 --- a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs +++ b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | |||
@@ -1241,5 +1241,14 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
1241 | return ""; | 1241 | return ""; |
1242 | return instance.GetXMLState(); | 1242 | return instance.GetXMLState(); |
1243 | } | 1243 | } |
1244 | |||
1245 | public bool CanBeDeleted(UUID itemID) | ||
1246 | { | ||
1247 | IScriptInstance instance = GetInstance(itemID); | ||
1248 | if (instance == null) | ||
1249 | return true; | ||
1250 | |||
1251 | return instance.CanBeDeleted(); | ||
1252 | } | ||
1244 | } | 1253 | } |
1245 | } | 1254 | } |