function Grid._onAddGridObject(l,S,e,z)local E=l.objectTypes[e]local s=l.contentsManager:add(E,z)if not s then AddGridObjectRejected:FireClient(S,e,z)end end

function Grid:_onAddGridObject(player, objectTypeName, cellId)
	local objectType = self.objectTypes[objectTypeName]
	local placed = self.contentsManager:add(objectType, cellId)
	if not placed then
		AddGridObjectRejected:FireClient(player, objectTypeName, cellId)
	end
end
