Remove TableParts, fix SmoothTile destruction bug (#918)

This commit is contained in:
chairbender
2020-05-17 07:04:44 -07:00
committed by GitHub
parent 1b2063c998
commit 61e4a431a2
3 changed files with 6 additions and 19 deletions

View File

@@ -81,6 +81,9 @@ namespace Content.Client.GameObjects.Components.IconSmoothing
base.Startup();
SnapGrid.OnPositionChanged += SnapGridOnPositionChanged;
// ensures lastposition initial value is populated on spawn. Just calling
// the hook here would cause a dirty event to fire needlessly
_lastPosition = (Owner.Transform.GridID, SnapGrid.Position);
Owner.EntityManager.EventBus.RaiseEvent(EventSource.Local, new IconSmoothDirtyEvent(Owner,null, SnapGrid.Offset, Mode));
if (Mode == IconSmoothingMode.Corners)
{