206 {
207 super.OnEndServer(action_data);
208
210 if (!poActionData || !poActionData.m_MainItem)
211 return;
212
214 {
215 poActionData.m_MainItem.SetIsBeingPlaced(false);
216
217 if (
g_Game.IsMultiplayer())
218 {
219 poActionData.m_Player.PlacingCancelServer();
220 }
221 else
222 {
223
224 poActionData.m_Player.PlacingCancelLocal();
225 poActionData.m_Player.PlacingCancelServer();
226 }
227 }
228 else
229 {
230 if (poActionData.m_MainItem.IsBasebuildingKit())
231 {
232 poActionData.m_MainItem.Delete();
233 }
234 }
235
236 if (poActionData.m_MainItem.GetLoopDeploySoundset() != string.Empty)
237 poActionData.m_MainItem.StopItemSoundServer(SoundConstants.ITEM_DEPLOY_LOOP);
238 }