@@ -358,26 +358,6 @@ eventHandler.InitializeDefaultHandlers = function()
358358 tes3mp .SendObjectSound (true , true )
359359 end )
360360
361- -- Print object restocking and send an ObjectRestock packet back to the player
362- customEventHooks .registerHandler (" OnObjectRestock" , function (eventStatus , pid , cellDescription , objects , targetPlayers )
363-
364- if eventStatus .validDefaultHandler == false then return end
365-
366- local debugMessage = nil
367-
368- for uniqueIndex , object in pairs (objects ) do
369- tes3mp .LogAppend (enumerations .log .INFO , " - Accepting restock request for " .. object .refId .. " " .. uniqueIndex )
370- end
371-
372- tes3mp .CopyReceivedObjectListToStore ()
373- -- Objects can't be restocked clientside without the server's approval, so we send
374- -- the packet back to the player who sent it, but we avoid sending it to other
375- -- players because the Container packet resulting from the restocking will get
376- -- sent to them instead
377- -- i.e. sendToOtherPlayers is false and skipAttachedPlayer is false
378- tes3mp .SendObjectRestock (false , false )
379- end )
380-
381361end
382362
383363eventHandler .OnPlayerConnect = function (pid , playerName )
@@ -1324,10 +1304,6 @@ eventHandler.OnObjectMiscellaneous = function(pid, cellDescription)
13241304 eventHandler .OnGenericObjectEvent (pid , cellDescription , " ObjectMiscellaneous" )
13251305end
13261306
1327- eventHandler .OnObjectRestock = function (pid , cellDescription )
1328- eventHandler .OnGenericObjectEvent (pid , cellDescription , " ObjectRestock" )
1329- end
1330-
13311307eventHandler .OnObjectTrap = function (pid , cellDescription )
13321308 eventHandler .OnGenericObjectEvent (pid , cellDescription , " ObjectTrap" )
13331309end
0 commit comments