mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
silly bugs
This commit is contained in:
@@ -1352,9 +1352,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
|
||||
return null;
|
||||
}
|
||||
|
||||
if (lastattPoint != objatt.AttachmentPoint ||
|
||||
!lastPos.Equals(objatt.RootPart.OffsetPosition) ||
|
||||
!lastAttPos.Equals(objatt.RootPart.AttachedPos))
|
||||
if(lastattPoint != objatt.AttachmentPoint ||
|
||||
lastPos.NotEqual(objatt.RootPart.OffsetPosition) ||
|
||||
lastAttPos.NotEqual(objatt.RootPart.AttachedPos))
|
||||
objatt.HasGroupChanged = true;
|
||||
|
||||
return objatt;
|
||||
|
||||
@@ -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