mirror of
https://github.com/opensim/opensim.git
synced 2026-05-14 18:55:39 +08:00
Don't allow the last behavior to be removed from a pCampbot bot
If you want to stop existing behavious, add the None behaviour.
This commit is contained in:
@@ -208,6 +208,9 @@ namespace pCampBot
|
||||
|
||||
public bool RemoveBehaviour(string abbreviatedName)
|
||||
{
|
||||
if (Behaviours.Count <= 0)
|
||||
return false;
|
||||
|
||||
Dictionary<string, IBehaviour> updatedBehaviours = new Dictionary<string, IBehaviour>(Behaviours);
|
||||
IBehaviour behaviour;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user