mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 03:06:05 +08:00
silly bugs
This commit is contained in:
@@ -582,7 +582,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
/// <param name="callback"></param>
|
||||
public void AddCommand(IRegionModuleBase module, string command, string shorthelp, string longhelp, string descriptivehelp, CommandDelegate callback)
|
||||
{
|
||||
string moduleName = (module is null) ? module.Name : string.Empty;
|
||||
string moduleName = (module is not null) ? module.Name : string.Empty;
|
||||
AddCommand(moduleName, module, command, shorthelp, longhelp, descriptivehelp, callback);
|
||||
}
|
||||
|
||||
|
||||
@@ -215,14 +215,8 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
{
|
||||
return part.Inventory.GetInventoryItem(itemID);
|
||||
}
|
||||
else
|
||||
{
|
||||
m_log.ErrorFormat(
|
||||
"[PRIM INVENTORY]: " +
|
||||
"Couldn't find prim local ID {0} in prim {1}, {2} to get inventory item ID {3}",
|
||||
primID, part.Name, part.UUID, itemID);
|
||||
}
|
||||
|
||||
m_log.Error($"[PRIM INVENTORY]: Couldn't find prim local ID {primID} to get inventory item ID {itemID}");
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user