Skip to content

Commit

Permalink
Update Landblock.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
LtRipley36706 committed Dec 30, 2024
1 parent 379b539 commit 423166b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/ACE.Server/Entity/Landblock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -888,11 +888,15 @@ private bool AddWorldObjectInternal(WorldObject wo)
{
if (wo.Guid.IsDynamic() && PropertyManager.GetBool("dynamic_scatter_retry").Item)
{
var woFailedLocation = new Position(wo.Location);
wo.RetryEnterWorldWithScatter = true;
wo.InitPhysicsObj();
success = wo.AddPhysicsObj();
if (!success)
log.Warn($"Landblock.AddWorldObjectInternal: Could not spawn dynamic object!\n 0x{wo.Guid} - {wo.NameWithMaterial} (WCID: {wo.WeenieClassId} | WeenieType: {wo.WeenieType})\n at {wo.Location.ToLOCString()}");
else if (log.IsDebugEnabled)
log.Debug($"Landblock.AddWorldObjectInternal: Successfully moved and spawned dynamic object!\n 0x{wo.Guid} - {wo.NameWithMaterial} (WCID: {wo.WeenieClassId} | WeenieType: {wo.WeenieType})\n from: {wo.Location.ToLOCString()}\n to: {woFailedLocation.ToLOCString()}");

}
else
log.Warn($"AddWorldObjectInternal: couldn't spawn 0x{wo.Guid}:{wo.Name} [{wo.WeenieClassId} - {wo.WeenieType}] at {wo.Location.ToLOCString()}");
Expand Down

0 comments on commit 423166b

Please sign in to comment.